R
ryan.crowe
I am creating a query/report generator module for my database that I
hope will allow a user to dynamically create a report based on any
combination of data that has been entered. The query's criteria is
collected in a number of combo and text boxes on a single form. The
problem is when the query is run, I can figure out how to get the query
to ignore the null or blank fields on the form. I have tried adding
"Like [Forms]![FormName]![ControlName].[value] Is Not Null Or ="""
as the 'Or' criteria in design of the query but this does not seem
to do anything.
There are too many different scenarios to build a query for each
possibility and I don't really know how to write a query that
conditionally adds "Where" clauses based on what is not null.
What am I missing here?
hope will allow a user to dynamically create a report based on any
combination of data that has been entered. The query's criteria is
collected in a number of combo and text boxes on a single form. The
problem is when the query is run, I can figure out how to get the query
to ignore the null or blank fields on the form. I have tried adding
"Like [Forms]![FormName]![ControlName].[value] Is Not Null Or ="""
as the 'Or' criteria in design of the query but this does not seem
to do anything.
There are too many different scenarios to build a query for each
possibility and I don't really know how to write a query that
conditionally adds "Where" clauses based on what is not null.
What am I missing here?