I am querying table1, field1 which is a number value.
I have a form (form1) where I am entering the max (field1Max) and min (field1Min) values for field1 to be queried.
I need help creating a query that basically does this, which does not work: iif(forms.form1.field1Min is null AND forms.form1.field1Max is not null, table1.field1 <= forms.form1.field1Max,0)
so basically, if the user does not input a value for field1Min, but does input a value for field1Max, the query will return all records where table1.field1 <= field1Max.