G
ghetto_banjo
In my query, I am using the NZ function to look at a field on a form,
and if that field is blank I want the query to act like there is no
criteria at all.
Here is my function
Like nz(Forms!frmSearch.txtOrderCategory, "*")
This almost works perfectly. Currently, the query will pull orders
with the specified order category if that field is filled in, or if
the field is blank, it will pull all orders that HAVE an order
category. Some orders do not have a category specified, and these are
not returned. In other words the "*" means all records that have
anything but null. I want to also include the nulls when the field is
blank, how do I accomplish this?
and if that field is blank I want the query to act like there is no
criteria at all.
Here is my function
Like nz(Forms!frmSearch.txtOrderCategory, "*")
This almost works perfectly. Currently, the query will pull orders
with the specified order category if that field is filled in, or if
the field is blank, it will pull all orders that HAVE an order
category. Some orders do not have a category specified, and these are
not returned. In other words the "*" means all records that have
anything but null. I want to also include the nulls when the field is
blank, how do I accomplish this?