Date criteria doesn't work in my query

When you use a date as criteria in an Access query, you might find that you don't get the results you expect.

Date criteria that won't return the right results

In the query shown above, the criteria >=#1/1/2005#<#1/1/2010# won't work because it's not valid. The query runs, but it's likely the results will be wrong. The criteria needs the "And" operator between the dates. The criteria shown below, with the "And" operator, will work as expected:

This date criteria will work

To make things easier, instead of using the "greater than," "less than," or "equal to" signs, you can use "Between" with the dates and the "And" operator to do the same test, like this:

Between #1/1/2005# And #1/1/2010#

Notice the # characters (pound signs) that surround the dates? When you enter a date that Access recognizes, it automatically gets enclosed in # characters.

Examples of date criteria

This shows some criteria that will work, and one that won't:


Returns records with:


Dates on or after 1/1/2011.


Dates on or before 6/1/2014.


The only the date 8/25/13.

Between 9/1 And 12/31/15

Dates on or after 9/1 of the current year and on or before 12/31/15.


All dates. The criteria is missing the "And" operator, so it doesn't filter any results out.

Between 3/1/10 And 1/1/05

Dates on or after 1/1/05 and on or before 3/1/10. It doesn't matter that the later date is entered in the criteria before the earlier date.

Examples of date formats that Access recognizes

Here are some of the many date formats you can use in the Criteria cell:







Access uses the current year if you don't specify one.





See Examples of using dates as criteria in Access queries for many ways to use dates as query criteria.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Office Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!