LemonTwist
New member
- Local time
- Today, 03:54
- Joined
- Aug 5, 2008
- Messages
- 7
I am trying to add criteria to a date column on my Access query so that it only returns records from between 45 days ago and today's date. In the Criteria box for the date column I have put
but when I try to run the query, I get an error message saying "ODBC Call Failed. The String representation of a datetime value is not a valid datetime value".
I have checked that the relevant column in the table I'm querying is in Date/Time format, and also the column in the table to which I'm appending the data is in Date/Time format.
Does anyone know what could be causing this error, and what I can do to fix it?
Code:
Between Date()-45 And Date()
I have checked that the relevant column in the table I'm querying is in Date/Time format, and also the column in the table to which I'm appending the data is in Date/Time format.
Does anyone know what could be causing this error, and what I can do to fix it?