To ensure optimal performance, you should compact and repair your Microsoft Access files on a regular basis. Also, if a serious problem occurs while you are working in an Access file and Access attempts to recover it, you might receive a message that the repair operation was cancelled and that you should compact and repair the file.
You must have Open/Run and Open Exclusive permissions for an Access database in order to compact and repair it.
Compact and repair the current Access file
Compact and repair an Access file that is not open
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.
Note You can stop the compact and repair process by pressing CTRL+BREAK or ESC.