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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FINDING RECORDS BY DATE

Status
Not open for further replies.

Mksmall

Technical User
Oct 18, 2001
18
US
Can someone help me pull in information from a table that is older than 30 days from the current date. I need the criteria to use in a query. I want to find records that are older than 30 days.
 
The SQL to select all records from Table1 where a field called 'date' is more than 30 ago would look like this:


SELECT * FROM Table1 WHERE ((Now()-[Table1]![date]>30));


Hope this helps! Jamie Gillespie
j-gillespie@s-cheshire.ac.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top