J
JBurlison
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:
Code:
IIf(IsNull([Forms]![Inventory Report Search]![Model]),Is
Null,[Forms]![Inventory Report Search]![Model])
this is not working. 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.
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:
Code:
IIf(IsNull([Forms]![Inventory Report Search]![Model]),Is
Null,[Forms]![Inventory Report Search]![Model])
this is not working. 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.