Gregory,
Thank you for the info. I'm going to do something along those lines as you and Stephan have suggested.
>Elgin,
>
>Oh, I see now...
>
>This.name will be re-evaluated each time the datasource is accessed. It may well be the Name of the grid ?
>
>Best is not to have variable in filters
>
>Try this
>
>
>*SET FILTER TO ALLTRIM(datafield) = ALLTRIM(This.Name)
>
>local f
>f = [alltrim(datafield) = '] + ALLTRIM(This.Name) + [']
>
>set filter to &f
>