G
Guest
I have a form that uses a parameter query to pull a recordset. But when a
value is entered that does not exist, the form goes blank and i have to
remove the filter. I want to bind a button to a click event that will apply
the filter using the text property [of a txt box] if recordset exists, else
remove filter. The way i have it set up now is the button executes a
OpenQuery macro, and the criteria set to the text property. Can i define an
IIF statement that will accomplish something to that affect?
[bad syntax]
if select me.txtbox.text from tblA.FieldA = null, remove filter, apply filter
[/bad syntax]
value is entered that does not exist, the form goes blank and i have to
remove the filter. I want to bind a button to a click event that will apply
the filter using the text property [of a txt box] if recordset exists, else
remove filter. The way i have it set up now is the button executes a
OpenQuery macro, and the criteria set to the text property. Can i define an
IIF statement that will accomplish something to that affect?
[bad syntax]
if select me.txtbox.text from tblA.FieldA = null, remove filter, apply filter
[/bad syntax]