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

Automatic deleting of the data from a table

Status
Not open for further replies.

n0nick

Programmer
Apr 28, 2005
32
0
0
NO
How can I make MS Access to automaticly, for example every sunday in the week, delete all data(posts) in one spesific table. Lets say I have one table named Table1 and got fields sessiondID, productID and date.

I want that MS Access deletes all stored posts until todays date.

Sorry if my english is bad :)
 
Create a delete query with the criteria you need. Create a macro called autoexec that turns off warnings, runs the query, turns warnings back on, and closes the database.

Use Windows to schedule task for weekly automation.

Stewart J. McAbney | Talk History
 
Hello! Thanks alot for your answer. It did work like i wanted it but, when I connect to this Database using ASP will macro "autoexec" also then automaticly run at startup, or does this macro only runs when you open Access database with MS Access?
 
Only when you open MS Access. You didn't say anything about ASP in your initial post - how was anyone to know?

Stewart J. McAbney | Talk History
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top