Purge Records

K

Kimber

I'm working on a database for Realtors. It's for contract
deadlines. I need help with a statement that will clear
all the old records out say 30 day old from their closing
date. Can anyone help with the statement that will do
that.
 
D

Douglas J. Steele

DELETE FROM MyTable WHERE ClosingDate < DateAdd("d", -30, Date())

(Replace MyTable and ClosingDate with the appropriate names)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top