I got a similar error in one of my forms. I am thinking that mine was from a view I had in the DE that used macro substitution in the WHERE.
>Hi,
>This works in VFP7 & 8 but errors in 9, Any ideas. ?
>
>DO FORM &lcprogramtoRun WITH thisform.cDoctor, thisform.cemployeeid, thisform.cstate, oApp.currentwindow
>
>Gives following error:-
>
>
Error loading file - Record number 40. frminvrvg <or one of its members>. Loading form or dataenvironment: You use logical expression with FILTER
>Line 38
>Program name = MAINSCREEN.COMMAND13.CLICK
>Syntax is: DO FORM &lcprogramtoRun WITH thisform.cDoctor, thisform.cemployeeid, thisform.cstate, oApp.currentwindow