>local lcValue, lcOldAnsi >lcOldAnsi=set('ansi') >set ansi off && to perfomr partial match >lcValue=alltrim(thisform....) >select ... where pat_lName=m.lcValue ... >if lcOldAnsi='ON' > set ansi on && restore it back >endifAccording to SYS(3054,1), you get partial Rushmore optimization using LIKE instead of and equal sign. Of course, you have to have an index tag on the expression used on the left side of the equation.