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!

retreving a record that is more than seven years old 1

Status
Not open for further replies.

JesseNorris

Technical User
Oct 18, 2004
24
AU
Hi all

im looking to have a query that will return only the records that are older than 7 years old based on a date_last_closed feild.

any ideas will be a grate help
Regards,
Jesse
 
Its all good guys i think ive worked it out

how odse <(DatePart("yyyy",[nameoffield])-7) sound?
 
And what about this in the criteria cell of date_last_closed ?
<DateAdd('yyyy',-7,Date())

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PHV

this proves that there is more than one way to fry an egg
Regards,
Jesse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top