Question Nightly process for Compact and Repair

txgeekgirl

Registered User.
Local time
Today, 08:23
Joined
Jul 31, 2008
Messages
187
Hi out there - I have a nightly process that flushes and updates Access DB Tables based on demographic data from an EMR program. I would like to know if there is a function call or way to have it Compact & Repair the database automatically after the updates are made. :D
 
Yes it's possible. A google search should give you the right code. Or just set the DB properties to include a Compact on Close
 
If you are using Window Scheduled Tasks you can use '/compact' after setting the 'Run' option to open your database.

E.g.

"C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "C:\Folder\dbname.mdb" /compact
 

Users who are viewing this thread

Back
Top Bottom