Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Criteria As Filter In Query (date), Access 2003 1

Status
Not open for further replies.

netrusher

Technical User
Feb 13, 2005
952
0
0
US
I am wanting to use criteria in a query that will allow me to filter data based on a date range like: >25 days but <50 day. I possibly would like to see data that is more than 25 days old but less than 50 or more than 50 and less than 75, etc. This would be based on a "StartWaterDate" field. This field would have a date that water was started. Thanks for help.
 
Code:
WHERE DateDiff('d',StartWaterDate,Now()) BETWEEN 25 AND 50

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top