I have built a query in Access using the DateSerial function to convert dates such as 20100401 to 04/01/2010. The query results work fine and the date is displayed correctly. I am now trying to enter criteria to query only certain dates. When I enter 04/01/2010 in the criteria field it displays a "data type mismatch error". I have tried entering the date criteria as #04/01/2010# and I get the same message. Ultimately I would like to create parameters to be able to enter a date range, however, I am having trouble just querying for a single date. The Date Serial expression looks like this:
Post Date: DateSerial(Left ([dbo_transaction s]![post_date],4),Mid([dbo_transaction s]![post_date],5,2),Right([dbo_transaction s]![post_date],2))
It displays the dates correctly (i.e. 04/01/2010) but it will not let me enter specific criteria.
Any suggestions?
Thanks for your help!
Post Date: DateSerial(Left ([dbo_transaction s]![post_date],4),Mid([dbo_transaction s]![post_date],5,2),Right([dbo_transaction s]![post_date],2))
It displays the dates correctly (i.e. 04/01/2010) but it will not let me enter specific criteria.
Any suggestions?
Thanks for your help!
Comment