Greetings Dorin
I'd actually tried your suggestion a variant (&?qrycode) suggested by Sergey in another thread. Apparently it works under vfp7 sp1 but not vfp8 sp1
>Hi
>I remember something about using macrosubstitution instead parameters.
>
SELECT Contacts.*;
> FROM ;
> CONTACT!CONTACTS;
> WHERE &qrycode
>
>The qrycode variable must exists at design times, otherwise wil be includes as is, and the SQL command will fail.