What is the database that is involved in this? Is that SQL server or MS Access? You haven't mentioned about that. If SQL server, you can schedule an job on sql server(under Enterprise Manager >> ServerName >> Management >> SQL server Agent >> Jobs) to run once everyday that checks for past events and deletes. For this you need to have SQL server agent running.
You can use something like this in the job and schedule it to run at a time when there is less load/operation on the server(sometime during midnight or at 12:00 am everyday).
Code:
Delete from TABLE_NAME where DATECOLUMN < getdate()-7
This deletes the rows all that are older than 7 days from now, thus keeps a week's old records always. Reduce/Increase
7 to a lower/higher value that suits your requirement.
If that is MS access, that is best done as RajaniKrishna suggested. Create a vbscript file that does the same and schedule a task on the OS at similar time. Running that daily or weekly would be left to your preference.
Cheers!
_________________________
- Vijay G
Strive for Perfection