EFileTahi-A
Well-known member
Am trying to retrieve records on my Access database between dates, but I just cant...
The Access database have a field named "dataagend" with the "Short date" format (dd-MM-yyyy)
So basically, the SQL query would be like this:
"SELECT * FROM historico WHERE dataagend BETWEEN 01-01-2005 AND 12-12-2005"
But it does not work, I always get the following error msg: "Data type mismatch in the criteria expression"
If I remove the single quotes () it does not give me an error, but it also returns me no record...
Please aid, thanks!
The Access database have a field named "dataagend" with the "Short date" format (dd-MM-yyyy)
So basically, the SQL query would be like this:
"SELECT * FROM historico WHERE dataagend BETWEEN 01-01-2005 AND 12-12-2005"
But it does not work, I always get the following error msg: "Data type mismatch in the criteria expression"
If I remove the single quotes () it does not give me an error, but it also returns me no record...
Please aid, thanks!