Compact and Repair Database

gear

Registered User.
Local time
Today, 01:19
Joined
Mar 10, 2007
Messages
112
The compact and repair utility is very good.
Since all my record operations are done through menu, I would like to put a command button for this utility also. But I dont know how to do this. Would somebody help? Thanks in advance.
 
Create a button in the onclick event put
Code:
DoCmd.RunCommand acCmdCompactDatabase
docmd.RunCommand acCmdRepairDatabase
 
If only one person uses the database at a time, you can select the compact on close option. This can be found in TOOLS, OPTIONS, GENERAL TAB, Compact on Close.
 

Users who are viewing this thread

Back
Top Bottom