LemonTwist
09-24-2008, 07:51 AM
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 Between Date()-45 And Date() 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?
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?