LPARAMETERS condition,value IF value == '' OR value = 'ALL' sqlstring = '' ELSE sqltring = 'AND ' + condition + ' = ' + value ENDIF RETURN sqlstringThe 'Save' button in the form (or Search or how do you name it) should have something like that in the Click's event:
sqlcommand = 'SELECT * FROM mydata WHERE ' + ; Thisform.MyMethod('mydata.scholltype',Thisform.Combo1.Value) + ; Thisform.MyMethod('mydata.city',Thisform.Combo1.Value) + ; ........... and so on, until they're finished ............ 'INTO Cursor MyResult NOFILTER'2. Somewhere in the beginning of the main program place the line
_screen.WindowState = 2Hope this helps.