Answer the question
In order to leave comments, you need to log in
How to correctly compose a query with a date in vba access?
There is Access 2013, it has a sold_test table imported from Excel. It has a date field with a date like 25/10/15, that is, dd/mm/yy. I'm trying to select records between January 2, 2015 and January 3, 2015:
Set rsSold = .OpenRecordset("SELECT * FROM sold_test WHERE date BETWEEN #01/02/2015# AND #01/03/2015#")
Set rsSold = .OpenRecordset("SELECT * FROM sold_test WHERE date > '02/01/15' AND date < '03/01/15'")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question