Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to use less than and greater than for filter tha data between two date in ms access
Posted

Try
SQL
SELECT * FROM MyTable WHERE MyDateColumn > #2013-12-01# AND MyDateColumn <= #2013-12-17#
Or:
SQL
SELECT * FROM MyTable WHERE MyDateColumn BETWEEN #2013-12-01# AND #2013-12-17#
 
Share this answer
 
You can use Format function to format the date.
SQL
SELECT * from Table where DateField > Format(#@DateField#,'mm/dd/yyyy');

With Between
SQL
SELECT * from Table where DateField BETWEEN Format(@DateFrom,'dd/mm/yyyy') AND Format(@DateTo,'dd/mm/yyyy')
 
Share this answer
 
v2
please follow this link and it is provide good solution for your question and all.

http://office.microsoft.com/en-001/access-help/examples-of-using-dates-as-criteria-in-access-queries-HA102809751.aspx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900