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

DELETE BY DATE

Status
Not open for further replies.

Tech718

Technical User
Joined
Jan 24, 2008
Messages
13
Hello,
is there a way i can have records automatically removed from a table once a date has passed. I have a table with information and an expiration date for each record. can tables automatically delete the record once the date has arrived/passed?
 
Create a delete query launched by a macro executed with the /x command line option of msaccess.exe in a scheduled job.

DELETE * FROM yourTable
WHERE [expiration date] <= Date()

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

Part and Inventory Search

Sponsor

Back
Top