I have a check box on a search form which if ticked should include all closed contracts when running the query.
In the query I have the field Closed Date and am trying to put as the criteria something like
IIf([forms]![frmSearchfileref]![chkclosed]=0,"is null","")
the idea being that if the check box is ticked then there is no criteria in the Date closed field therefore returning all entries but if the check box is not ticked then the criteria is is null so that all entries with no closed date are excluded but I am getting an error (this expression is too complicated etc..)
In the query I have the field Closed Date and am trying to put as the criteria something like
IIf([forms]![frmSearchfileref]![chkclosed]=0,"is null","")
the idea being that if the check box is ticked then there is no criteria in the Date closed field therefore returning all entries but if the check box is not ticked then the criteria is is null so that all entries with no closed date are excluded but I am getting an error (this expression is too complicated etc..)