Auto delete

N

Nick

Is there a way to delete data automaticly when the data base is closed. I
currenty have a manual button that deletes data, date minus 30? When the
database closes it does compress the files the tables automaticly. I would
like to do it all when the database closes.
 
D

Douglas J. Steele

Have a form that opens up automatically when the database opens (it can be
hidden if you don't have any other need for it). In the Unload event of that
form (or the Close, I suppose), put logic to run your delete queries.
 

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