Alex Rivera | Logout

Access SQL Date Format

Asked 2011-12-15T21:00:07.817
12

How can I retrieve a record based on a Date property? I'm trying:

WHERE Meetings.[MDate] = '16/12/2011'

which is the format I use but I get :

"Data type mismatch in criteria expression"


Problem solved: It should have been:

WHERE Meetings.[MDate] = 16/12/2011

No quotation marks.

Edit
Report

1 Answer

12

You'll want to use the SQL date format: '#2011-12-16#'

answered 2011-12-15T21:02:02.870

Your Answer