His code uses variables to build the filter string. Thre're no references to the variables in the filter stringf itself.
> You may be right, although I am confused. How would Hugo's code be able to handle the variables going out of scope any differently from my code?
> My code is:
>*********************************
>...
>CASE !EMPTY(ThisForm.txtFName.Value).and.!EMPTY(ThisForm.txtLName.Value)
>lcLName = ThisForm.txtLName.Value
>lcFName = ThisForm.txtFName.Value
>SET FILTER TO UPPER(People.FName) = ALLTRIM(UPPER(lcFName));
>.AND.UPPER(People.LName) = ALLTRIM(UPPER(lcLName))
>...
>*********************************
>
>Jerry
--sb--