Sometimes it's the pebbles that trip you up...
I have criteria in a query that references two dates (text fields) supplied by a form. The criteria is "Between [DateBegin] and [DateEnd]. Now, if the user supplies values for each of these, everything works great. However, what I want is for the query to return all records (regardless of date) if the user enters NEITHER of the values. But because the query criteria says Between [] and [], it doesn't know what to do if no values are supplied. I want it to behave as if there were no criteria at all for that date field if the two dates are not entered by the user.
What am I missing about how to pull this off?
Thanks,
SLH
I have criteria in a query that references two dates (text fields) supplied by a form. The criteria is "Between [DateBegin] and [DateEnd]. Now, if the user supplies values for each of these, everything works great. However, what I want is for the query to return all records (regardless of date) if the user enters NEITHER of the values. But because the query criteria says Between [] and [], it doesn't know what to do if no values are supplied. I want it to behave as if there were no criteria at all for that date field if the two dates are not entered by the user.
What am I missing about how to pull this off?
Thanks,
SLH