>lcStr = '"' + UPPER(m.lcVariable) + '"' >SET FILTER TO UPPER(field) = &lcStrbecause your filter will now still work even when the variable goes out of scope, which it would if you were doing this in the load event of a form for example
lcVariable = UPPER(m.lcVariable) >SET FILTER TO UPPER(field) = m.lcVariable>than to
SET FILTER TO UPPER(field) = UPPER(variable)>