jaaret
Instructor
- Jun 19, 2002
- 171
I have check boxes on a form that modify query search criteria. The field being quieried has one of two values: 'Yes' or 'No'. The check boxes on the form are for 'All' or 'Owner Occupied' (and a couple others). When 'Owner Occupied' is checked the query returns all records with the 'Yes' value. But when 'All' is checked the query returns zero records. What should I replace the '*' with in my IIf statement, below?
IIf([forms]![pfrmDataRefiner]![chkAll]=-1,'*',IIf([Forms]![pfrmDataRefiner]![chkOO]=-1,'Yes'))
IIf([forms]![pfrmDataRefiner]![chkAll]=-1,'*',IIf([Forms]![pfrmDataRefiner]![chkOO]=-1,'Yes'))