Access enclosed a date with # signs to indicate a literal value of date.
- Edper
2 Answers
13
votes
SELECT *
FROM mytable
WHERE date = #7/23/2013#
10
votes
Access enclosed a date with # signs to indicate a literal value of date. And using a single quote in your case means you are comparing a String/Text with a Date data type thus the Data Type mismatch. It should therefore be:
SELECT *
FROM mytable
WHERE date = #23/07/2013#
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more