The unterminated string in the messagebox() command did it.
Yet another reason I put a background color on my strings. :)
>Hi everyone,
>
>I have this code fragment:
>
...
> = messagebox('No record to process!)
> if vartype(oJC)='O'
> oJC.CurAppStat='I'
...
>
Insanity: Doing the same thing over and over and expecting different results.