G
Guest
Hi
I have a query that uses in the criteria section, text boxes from a form
text box names on the form values are:
Name
Date From
Date To
I want the query to use either the value as per the form
or
if the text box is null i.e. no value entered by the user, then to use a
wildcard i.e. bring everything back
e.g.
If date from is 1Sep05 and Date to is 30Sep05 and Name = SMITH
then the query should bring back all data between dates 1Sep05 and 30Sep05
for people with a name of SMITH
If the Name text box is null on the form, then I want the query to bring
back ALL names between the date range
Getting data back using the date range and when there is a value inthe name
field works fine but I cannot get any data back when the text box is null
Any ideas how to get around this???
I have a query that uses in the criteria section, text boxes from a form
text box names on the form values are:
Name
Date From
Date To
I want the query to use either the value as per the form
or
if the text box is null i.e. no value entered by the user, then to use a
wildcard i.e. bring everything back
e.g.
If date from is 1Sep05 and Date to is 30Sep05 and Name = SMITH
then the query should bring back all data between dates 1Sep05 and 30Sep05
for people with a name of SMITH
If the Name text box is null on the form, then I want the query to bring
back ALL names between the date range
Getting data back using the date range and when there is a value inthe name
field works fine but I cannot get any data back when the text box is null
Any ideas how to get around this???