Q
quaddawg via AccessMonster.com
I have a query that uses dates entered on a form frmMemDateReport in the
boxes txtBeginDate and txtEndDate. The unbound txt boxes have a short date
input mask and short date format.
Here's the query language I'm trying to use (in design view):
I have the form open with dates in it and run the query, I get no results.
If I add an OR line to the StartDate field and put in the same dates (as on
the form) with Between...And... I get the proper results.
I know this is hard to diagnose with this information, but am I missing
something obvious? Is there some sort of formatting issue? I've tried to
format all dates "yyyymm" to no avail. I tried Between...And with the form
reference but that was a disaster.
Thanks for your help.
boxes txtBeginDate and txtEndDate. The unbound txt boxes have a short date
input mask and short date format.
Here's the query language I'm trying to use (in design view):
as Criteria for the StartDate field in a table (also in short date format).=[Forms]![frmMemDateReport]![txtBeginDate] And <=[Forms]![frmMemDateReport]![txtEndDate]
I have the form open with dates in it and run the query, I get no results.
If I add an OR line to the StartDate field and put in the same dates (as on
the form) with Between...And... I get the proper results.
I know this is hard to diagnose with this information, but am I missing
something obvious? Is there some sort of formatting issue? I've tried to
format all dates "yyyymm" to no avail. I tried Between...And with the form
reference but that was a disaster.
Thanks for your help.