X

How to Repair Microsoft Access Database File and Recover Data

If you’ve used the Access database, you know that it’s Microsoft’s proprietary Database Management System (DBMS). And just as Microsoft’s other applications, it’s efficient as well as very user-friendly. MS Access has a relational MS Jet Database Engine with development tools running at the back and an easy to grasp user interface at the front. The ease of use it offers makes this DBMS a preferred choice for many corporates. However, database files are often plagued by corruption, which can pose a threat to the extremely vital data present in them. MS Access is no different and often faces corruption. This article is helpful for Microsoft Access database repair and you understand the reasons behind MS Access database corruption and the ways in which it can be resolved.

Special Tips – Don’t forget to check out this MDB repair article if you are using MS Access 2003 or lower versions.

Reasons for Access Database Corruption

When the binary file format of a database encounters an error, database corruption occurs. In such a case, users might face random errors or difficulty in using the database. The Jet Database Engine of Access auto-fixes minor issues that crop up in the database from time to time while reading and writing data normally. Due to this, in most cases, you may never find out that something went wrong! This is both good and bad. Good because your work is not interrupted, bad because corruption can become worse with time if not treated. Hence it is important to understand every aspect of Access database corruption.

Here are the main reasons behind it:

  1. Frequent edits to data in Memo fields increases the chances of Access database corruption. It mostly results from a problem with a VBA module and does not pose a risk of data loss. However, it does pose a risk of database design damage.
  2. Interrupted change to data — because of network service loss for example — causes Access to mark the database file as corrupted. The file can be repaired, but some data may be missing after the repair is complete.
  3. If a Virus infects a file needed by the Access database, as soon as that file is used when the database opens, the infection will spread to the database and corrupt it.
  4. Hardware failures like lost packets on network cards and bad sectors on hard drives can cause database corruption.
  5. Improperly designed or installed third-party plug-ins for Access can corrupt the database.
  6. If multiple users of the same database have different Jet service packs and updates installed, minor differences in the mdb file format and file-locking mechanisms can cause database corruption.
  7. A few bugs in Access and Jet software are sometimes themselves responsible for corruption.
  8. Though it happens very rarely, but improper shutdown of the system while some activity is being performed on the database can lead to its corruption.

Repairing Access database and recovering data

Generally, when database corruption occurs, the only solution we can think of is sending the database to an Access data recovery company or calling their experts over. However, what we don’t realize is that sometimes, the corruption is minor enough to be handled by us ourselves. Here are some manual techniques to rectify database corruption:

  1. Restore the database from a backup file – This is why backups are very very important!
  2. Delete the .ldb file that is auto-created by the Jet database engine when the database is opened.
  3. Use the Jet Compact Utility that has been specifically designed to rectify minor corruptions in Access database.
  4. Remove all compiled VBA code from the database. This can be done using this command line switch from Microsoft:

C:\Program Files\Microsoft Office\Office\MsAccess.exe /decompile C:\DatabasePath\FileName.mdb

Note: You may need to change the path shown above for MsAccess.exe if you installed it to a different location.

  1. Use the built-in Access 2010 ‘Compact & Repair‘ feature. Here are the steps to fix Access database corruption using this feature:
    • Open MS Access (not the database file) and go to Database Tools -> Compact & Repair Database.
    • Locate the corrupted database file and click on Ok.
    • The selected database file will be rectified on completion of the process

  1. Import the corrupt database into a new Access 2010 database file by using the following steps:
    • Open MS Access and create a new database file.
    • Click on Access to Import Access database under the External Data tab.
  1. In the next window that pops-up, click on Browse and locate the database file while is to be imported.
    • Specify the place and technique to store data in the new database and click on Ok.
    • From the next window select all database objects that you want to import and click on Ok.
  1. If even after all the above techniques, the database corruption persists, the recommended solution would be to buy a premium quality third-party Access database repair software or else send the database to an Access repair company.

Steps to repair Microsoft Access database file by Stellar Phoenix Access Database Repair tool:

 

 

  1. Download and install Stellar Phoenix Access Database Repair.
  2. Select the corrupt file using ‘Select File’ button. You can also search the corrupted MDB or ACCDB files from the appropriate drive by selecting the drive using ‘Look In’ drop down and click on ‘Find Files’ button.

  1. Check the “Scan for deleted records” checkbox to include the deleted records for recovery.

  1. Click on the Repair button to start the repairing process.

  1. After completion of the repairing process, a confirmation message will appear on the screen. Click on OK.

  1. In the left pane, database objects will be listed in the tree form. Click on the objects to see the preview.

  1. To save the repaired data, click on the Save button and choose the location.

Concluding Lines

Now that you know about Access database corruption, its reasons, and solutions, do give them a try before rushing to the repair company. It might save your time and money.

Jyoti Prakash :Problem solver and Data recovery specialist. Usually share informative articles on data recovery, database corruption and ways to recover lost data.

View Comments (65)

  • Thanks, Jyoti,
    You explained the whole process really well. My access database is functional again and honestly; all the credit goes to you.
    I would recommend everyone who’s facing access database corruption issues to give this robust software a try.

  • hey there,
    I tried demo version for my data base actually its not opening not copying, installed stellar data recovery software, while recovery process are going its stopped working in mid, and error displayed and stellar software restarted,, can you help me out???

    Afzaal

    • Hi Afzall,

      Sorry for the inconvenience. You can start a fresh scan and see the preview of your data. If you will be able to preview your data then register the software to save your data.

      Thanks

  • Hello
    I am facing "Run time error 3343 Unrecognized database format" . Is it recoverable? if Yes, then how to do.

    • Hello Nitesh,

      First, you should try the inbuilt option 'Compact and Repair' to fix this issue. If you it won't work then, our Access database repair software will the unrecognized database format error easily.

      Good Luck!

  • Hi Jyoti,

    If I purchased stellar software, can it fix the corrupted database due to my excel data source?

    I download the access database from inventory, but I have corrupted excel database when importing, it throws errors continuously.

    Thanks for your help.

    Regards,
    Stuart

    • Hello Stuart,

      Please explain about the reported error message. Then, our team can help you to fix this problem quickly.

  • Dear Expert,

    My ms access recordset not open .....my os windows10 pro......when I choose design field no records showing.....

    pls help

    • Dear Antony,
      As you are not able to see the records so, one reason could be database corruption. In this case, Just download our Access repair software and repair your corrupt access database file.

  • At this moment, I have access to lost record without any changes in the original field value. I can say this software worth every penny.