Compact and repair automatically

Romper

Registered User.
Local time
Today, 15:29
Joined
Oct 28, 2012
Messages
83
Hi all,
I remember seeing a thread regarding setting up an automated Compact & Repair process, but I can't seem to find that thread now. Could someone please direct me to a reliable version of this type of process.
Thanks.
 
Access Options > Current Database > Compact on Close
 
You can also use the following, VBA;
Code:
        CommandBars("Menu Bar"). _
        Controls("Tools"). _
        Controls("Database utilities"). _
        Controls("Compact and repair database..."). _
        accDoDefaultAction

If you only need to compact and repair to a schedule.
 
Another way is to run the compact command using the Windows Scheduler.

"Path to MSAccess.exe" "Path to file for compacting" /COMPACT
 

Users who are viewing this thread

Back
Top Bottom