Shu Zong said:
Can I schedule a job to automatically compact and repair
MS Access database in Windows 2000? and how? I think I may
need some API to trigger the command in Access.
As an alternative why not get the last person out or the first person
in in the morning to do a compact?
When the user exits the FE attempt to rename the backend MDB
preferably with todays date in the name in yyyymmdd format. Ensure
you close all bound forms, including hidden forms, and reports before
doing this. If you get an error message, oops, its busy so don't
bother. If it is successful then compact it back.
See my Backup, do you trust the users or sysadmins? tips page for more
info.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm