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

Deleting data from tables after specified amount of time???

Status
Not open for further replies.

cschuette

Programmer
Apr 11, 2001
11
US
Is there a way that I can delete data from a table after a specified amount of time (ie. 3 years from the date associated with a record)? I have tried a few different things and I still can't get this to work. I would greatly appreciate any help! Thanks. X-)
 
Run a delete query - here's how you get 3 years ago:

DateAdd("yyyy",-3,Now())
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top