I was wondering has anyone come up with a way to automate archiving old records after they have reach a certain time period, like anything over 6 months old? If there is a way your assistant would be greatly appreciated.
I setup the following procedures for a database I worked on....
I created a separate database to hold my archived data. I copied the data table to this new database and emptied it so I know the structures were identical. I created a link to the archive table in my main table. I then created an append query that selected any data older than three months and with a closed status (these were customer calls) from the data table and appended it to the archive table. I followed this with a delete query against the data tablewith the same criteria. At first this was a button on an administrative type form I had, but I eventually create some code that ran everytime the db opened to perform these two qeuries....
Simple and effective. ****************************
Only two things are infinite, the
universe and human stupidity, and
I'm not sure about the former.
(Albert Einstein)
Robert L. Johnson III
MCSA, CNA, MCP, Network+, A+
w: robert.l.johnson.iii@citigroup.com
h: wildmage@tampabay.rr.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.