fenhow
05-15-2008, 06:56 AM
Hi,
I have a query that I am trying to run using a date filter.
I created a form that has an unbound txtbox with a short date format;
the form is called ReportSB the txtbox is called EODDay
In that txtbox the user enters a date.
The query has a date field in it called dateclosed
in the criteria I have; Like "*" & [Forms]![ReportSB]![EODDay]
I want the query to run all records where the date is the same as the one in the EODDay on the ReportSB form.
When I run this it comes up empty.
When I add [Date] in the query and run it it asks me for the date, I type in 5/15/2008 and all the records for 5/15/2008 appear like they should.
Can someone please tell me or help my as to why the query is not using the Like "*" & [Forms]![ReportSB]![EODDay] code?
Thanks.
Fen How
I have a query that I am trying to run using a date filter.
I created a form that has an unbound txtbox with a short date format;
the form is called ReportSB the txtbox is called EODDay
In that txtbox the user enters a date.
The query has a date field in it called dateclosed
in the criteria I have; Like "*" & [Forms]![ReportSB]![EODDay]
I want the query to run all records where the date is the same as the one in the EODDay on the ReportSB form.
When I run this it comes up empty.
When I add [Date] in the query and run it it asks me for the date, I type in 5/15/2008 and all the records for 5/15/2008 appear like they should.
Can someone please tell me or help my as to why the query is not using the Like "*" & [Forms]![ReportSB]![EODDay] code?
Thanks.
Fen How