Basically i have a drop down that i want controlling the Criteria for each field in my query to have an advanced search. If i leave a field blank the query comes up with nothing so i tried this:
this is not working. it is still returning the query blank. if i put valid critera in the dropdown it comes back Fine.how do i make is so if a field is blank it will return it as null or not even there.
Note: also tried this;
works, But comes back as too complex after a few searches and when i open the query there is a million or's in there. so that wont work.
Code:
IIf(IsNull([Forms]![Inventory Report Search]![Model]),Is Null,[Forms]![Inventory Report Search]![Model])
this is not working. it is still returning the query blank. if i put valid critera in the dropdown it comes back Fine.how do i make is so if a field is blank it will return it as null or not even there.
Note: also tried this;
Code:
Forms]![Inventory Report Search]![Model] Or Forms]![Inventory Report Search]![Model] Is Null
works, But comes back as too complex after a few searches and when i open the query there is a million or's in there. so that wont work.
Last edited: