Table of Content
    Access Database Repair

    What to do if Compact and Repair is not Working in MS Access?


    Table of Content

      Summary: If an Access database file gets corrupt or damaged, MS Access has a built-in Compact and Repair utility to repair the database. Sometimes, this utility doesn’t work or fails to repair the database due to various reasons. In this post, we’ve discussed alternate solutions to repair the MS Access database when Compact and Repair utility does not work.

      Compact and Repairis a built-in utility in Microsoft Access that you can use to repair a damaged or corrupted Access database file. This utility also helps improve the performance of the database by reducing its size. But sometimes, the Compact and Repair doesn’t work and instead causes MS Access to freeze or shows an error message on the screen. At times, the utility fails to repair the database file due to severe corruption or any other reason. In such situations, you need to look for alternate solutions to repair your corrupt or damaged MS Access database file.

      If the Compact and Repair utility is not working, you can follow the solutions explained below to repair and recover the corrupt database file.

      Methods to Repair Corrupt Access Database File when Compact and Repair is not Working

      If the Compact and Repair utility is not working, you can rename the database file and try to repair it again. You can also try to debug the VBA code as sometimes compilation error or missing reference can prevent the utility from working properly. If these don’t work, follow the below methods to repair or recover the corrupted Access database.

      Method 1: Import Database Objects into a New Access Database File

      If the Compact and Repair is not working, you can try to import the objects such as tables, forms, queries, etc., from the corrupted database to a new database file. Follow the below steps to do this:

      • Launch MS Access on your Windows PC.
      • Select the Blank desktop database option.
      Select the Blank desktop database option
      • Provide a name to the new database file and click on Create.
      Enter name for new database
      • The new database file will open. Click on the External Data tab in the ribbon and then click on Access.
      Click on the External Data tab
      • The Get External Data – Access Database window will open. Click on Browse against the File name field to select the problematic Access database file.
      • Select the Import tables, queries, etc. radio button and click OK.
      Select the Import tables, queries, etc. radio button
      • Next, you will see the Import Objects window. Click on an object tab and select the required objects under it. You can click on Select All to select all the objects. Repeat the above steps to select other database objects, like queries, forms, etc. Once you have selected the required objects, click OK to proceed.
       Import Objects window
      • This will begin the process of importing the selected objects from the corrupted database file into the newly created database file. Once the objects are successfully imported, click Close.

      Method 2: Use an Access Database Repair Software

      If the Compact and Repair utility is not working, then the best alternative to repair the corrupt Access database file is by using a powerful MS Access database repair tool, such as Stellar Repair for Access. This is an advanced tool that can easily resolve all types of corruption issues in the MS Access database files (ACCDB/MDB). It can recover all the objects from the corrupted database files with complete integrity and precision.

      Here are some benefits of using the Stellar Repair for Access:

      • Repairs and recovers all Access database objects, such as tables, forms, macros, indexes, linked tables, modules, etc.
      • Recovers deleted table records
      • Repairs split database
      • Recovers non-English data from the problematic database files
      • Previews the database objects before saving

      Steps to repair MS Access database file using the software:

      • Download and install Stellar Repair for Access on your Windows PC.
      • Launch the software. You will see the Select Database window.
      • Click on Browse to select the corrupted Access database file.
      Click on Browse to select the corrupted Access database file
      • Once you have selected the file, click on Repair.
      Cick on Repair
      • Once the software successfully repairs the selected database file, it will display all the recoverable objects. You can click on any object to see its preview.
      • Select the objects you want to recover and click on Save Database.
      Click on Save Database
      • Now, select a location to save the repaired database file and click OK.

      The repaired file will be saved at the selected location. You can go to the location to check the repaired database file.

      Conclusion

      If the Compact and Repair tool in MS Access is not working, you can try to export the problematic database file objects to a new file as discussed above. However, the best option is to use a powerful Access database repair software, like Stellar Repair for Access. The software can help you repair the corrupt or damaged MS Access database file and recover all the objects such as forms, tables, queries, etc., in a quick and simple way.

      Was this article helpful?

      No NO

      About The Author

      Keshav Katyal linkdin

      A passionate writer driven by his interest in everything tech, Keshav Katyal has always been captivated by the latest gadgets since childhood. His interest in technology grew when he got his first gaming console, the Nintendo Game Boy Advanced. Hours and days of tinkering with old & new gadgets made his inner geek passionate about technology.

      11 comments

      1. As a newbie, I only know the compact and repair solution to repair the corrupt Access database but, when it did not work for me so, I moved to this post, read all reviews and decided to try the free version of this software. The free version provides the preview of recoverable data, which also helped me to buy this tool.​

      2. I was very upset when I did not get a response from the compact and repair command. My database was not split, and I had the full permission of it. The worst thing was that I didn’t get any error message. I downloaded your Access Repair software to recover access database.

        Thank you!

      3. Hello,

        My database file was growing enormously, so I run compact and repair command. The database was working very slow and takes too much time to execute the query. Finally, I repaired it using Stellar Repair for Access tool.

      4. Very helpful suggestion. This post makes my work easier, and I got the ability to manage corruption of MS Access database when compact and repair not works.​

      5. I was googling and found your blog. I read the whole article and, I think it is very useful for those MS Access database users who has the issue in compact and repair command.

      6. I am working for an IT firm in database department. Paid tool or third party tool can be the last option to repair the database. I choose your tool because situation was out of control.
        First I tried Access Fix tool and downloaded in the system. Everything was fine but, it was showing the blank space at some places in the table data. I did the same process with your tool, and it was showing data where access fix showing blank space. That is why I decided to buy Stellar Repair for Access software.

      7. I got the following error message: “The Microsoft Jet database engine could not find the object ‘Myobject’. Make sure the object exists and that you spell its name and the path name correctly” compact and repair is unable to fix the issue.

        How can I fix this error?

      Leave a comment

      Your email address will not be published. Required fields are marked *

      Image Captcha
      Refresh Image Captcha

      Enter Captcha Here :

      Related Posts

      WHY STELLAR® IS GLOBAL LEADER

      Why Choose Stellar?

      • 0M+

        Customers

      • 0+

        Years of Excellence

      • 0+

        R&D Engineers

      • 0+

        Countries

      • 0+

        PARTNERS

      • 0+

        Awards Received