1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

How To Compact and Repair an Access Database


Over time, Microsoft Access databases grow in size and unnecessarily use disk space. Additionally, repeated modifications to the database file may result in data corruption. This risk increases for databases shared by multiple users over a network. Therefore, it's a good idea to periodically run the compact and repair database tool to ensure the consistency of your data.
Difficulty: Easy
Time Required: 20 minutes

Here's How:

  1. Instruct other users to close the database. You must be the only user with the database open in order to run the tool.
  2. Click the Microsoft Office button.
  3. From the Office menu, choose "Manage", then "Compact and Repair Database"
  4. Access will present the "Database to Compact From" dialog box. Navigate to the database you wish to compact and repair and then click the Compact button.
  5. Provide a new name for the compacted database in the "Compact Database Into" dialog box, then click the Save button.
  6. After verifying that the compacted database works properly, delete the original database and rename the compacted database with the original database's name. (This step is optional.)


  1. Remember that compact and repair creates a new database file. Therefore, any NTFS file permissions you applied to the original database will not apply to the compacted database. It's best to use user-level security instead of NTFS permissions for this reason.

What You Need

  • Microsoft Office Access 2007
  1. About.com
  2. Technology
  3. Databases
  4. Microsoft Access
  5. Tutorials
  6. Compact and Repair an Access Database

©2014 About.com. All rights reserved.