Ok,
I found the 'end' in the line... it was part of the next line that was an End If
Not sure why Q7Basic was combining the lines, BUT I put another return in their and that error went away.
Now, I get this error:
Q7Basic: syntax error or parser error - types incompatible near ') ' in line 416 in file Reports.Module.q7b
so, how is a ) incompatible??