- If you are compacting a shared Microsoft Access database that is located on a server or shared folder, make sure that no one else has it open.
- On the Tools menu, point to Database Utilities, and then click Compact and Repair Database/Project.
Compact and repair an Access file that is not open
- Close the current Microsoft Access file. If you are compacting a shared Access database that is located on a server or shared folder, make sure no one else has it open.
- On the Tools menu, point to Database Utilities, and then click Compact and Repair Database.
- In the Database to Compact From dialog box, specify the Access file you want to compact, and then click Compact.
- In the Compact Database Into dialog box, specify a name, drive, and folder for the compacted Access file.
- Click Save.
If you use the same name, drive, and folder, and the Access database or Access project is compacted successfully, Microsoft Access replaces the original file with the compacted version.
Compact and repair an Access file automatically every time you close it
Compacting does not occur if you close a shared Access database while another user has it open.
- Open the Access database or Access project that you want Microsoft Access to compact automatically.
- On the Tools menu, click Options.
- Click the General tab.
- Select the Compact on Close check box.
Note You can stop the compact and repair process by pressing CTRL+BREAK or ESC.