Compact and Repair Utility resulting in Complete data loss
Consider a practical scenario, where your Access 2007 database gets corrupted due to improper shutdown. You follow the below steps to repair your corrupted database:
Select "Database Utilities" option on the Tools menu.
Click on Compact and Repair Database option.
Locate for database file in the ´Database to Compact From´ dialog box. Click on Compact.
Select a new folder destination for the new file in the ´Compact Database Into´ dialog box.
Provide a valid, and new name for the database file. Click on Save option.
However, after the compaction process is complete, Access 2007 may display a warning message. The warning message states that it can not delete name.accdb file and suggests that you will need to remove the read-only status and then click OK. If you click OK, your database is completely damaged.
Note: Never click OK when the warning message appears.
To avoid any such Access database damage situations, you will need to repair the database using third-party access repair software applications. Such Access Repair tools use intensive scanning mechanisms to repair corrupt MS Access database and recover all inaccessible database components.