Table of Contents

     


    Access Database Repair

    How to Repair Corrupt Microsoft Access Database Files (MDB & ACCDB) and Recover Data?

    info-icon Our content follows trusted Editorial Standards - accurate & unbiased.

    Table of Contents

      Corruption in MS Access database usually occurs when errors are found in the underlying binary file format of the database. It may also happen due to connectivity issues or an abrupt system shutdown while working on a shared database file.

      Because of this, you may face difficulty in accessing Access database files (.accdb/.mdb) or the objects. You may also encounter an error message like “Unrecognized database format ACCDB/MBD” while trying to open a corrupted database file.

      Microsoft office Access Error

      However, there are ways to repair corrupted Access database file. In this post, we will explore some DIY methods in detail.

      What are MDB & ACCDB Files?

      MDB and ACCDB are the two database file types used by different MS Access versions. Let’s read more about them in detail.

      MDB

      Short for Microsoft Database, MDB file (file extension – .mdb) is a database file type used by the legacy versions of MS Access – Access 2003 and earlier (till Access 1.0). It stores typical database objects, like queries, tables, forms, and reports.

      ACCDB

      All latest versions of MS Access: Access 2007, 2010, 2013, 2016, 2019, 2021, 2024 and Microsoft Access (part of Microsoft 365) use ACCDB (.accdb) as the default file type for creating databases. This file format offers advanced features with improved and optimized functionality.

      With an improved database security model, it supports the security validation of DB files, with the major advantage being that both MS Outlook and SharePoint trust this validation.

      How to Convert Access Database File Format from MDB to ACCDB?

      As per Microsoft’s documentation, you can open MDB files using any new version of MS Access (2007 or later). However, you won’t be able to use some functionalities that require the .accdb file format. So, if you want to use new features, you’ll need to convert MDB to ACCDB first.

      Here is how you can do this by using Access 2007 or newer version:

      • Launch MS Access.
      • Choose the Blank desktop database option.
      Choose the Blank desktop database option
      • Give the new database file a name and click on Create.
      Create Blank destop database
      • Once the new database file opens, click on File > Close.
      click on File > Close
      • Again, click on File from the ribbon. Select Open from the left pane.
      • Select your MDB database file to open it.
      Select your MDB database file
      • Now, click on File > Save As.
      • Choose “Access Database (Default database format)” file type under Save Database As and click Save As.
      click Save As
      • Select the location where you want to save the database file and click Save.
      save the database file
      • It will show the “Database upgraded” dialog box. Click on OK.
      Database upgraded dialog box

      To verify the file format change,

      • Go to the location where you have saved the converted database file.
      • Select it and right-click on it.
      • Click on Properties.
      Click on Properties
      • Check the Type of file field. It should be .accdb.
      • Click OK to close the window.
      close the window

      Why does an Access Database Get Corrupted?

      The following are the reasons that may lead to Access database corruption:

      Type 1: Operational Causes

      • Frequently editing data in Memo fields (Long text fields)
      • Interruptions like network issues when making changes to data
      • Jet database engine version conflicts

      Type 2: System Causes

      • Power cut or abrupt system shutdown
      • Windows freezes or the application crashes while making changes
      • Inadequate free space available on the local storage drive

      Type 3: Other Causes

      • Virus or malware attack
      • Hardware failure or software bugs
      • Conflicting plug-ins
      • Bad sectors on the storage drive
      • Shared database file is accessed by a large number of users simultaneously
      • Large size of the database file (>2GB)

      How to Repair Microsoft Access Database?

      You can fix the corrupted database by using following DIY solutions.

      TipCheck this article on MDB file repair for information about common error messages related to MDB File Corruption.

      Method 1- Use ‘Compact and Repair’ to Repair Access Database Manually

      You can use ‘Compact and Repair’ – a Microsoft Access built-in utility for repairing a corrupt .MDB/.ACCDB database file. It can also help fix inconsistencies or remove unused spaces in the database file.

      Case 1. Database is Opening

      If the Access database is corrupted but you are able to open it, follow these steps:

      • Open the problematic Access database file.
      • In your Access database, click ‘File.’
      • From the window that appears, click the ‘Compact & Repair’ option on the ‘Info’ page.
      click the ‘Compact & Repair’

      Note: You can also do this from the menu bar. Select Database Tools and click on Compact and Repair Database.

      Select Database Tools and click on Compact and Repair Database

      Case 2. Database is Not Opening

      If you can’t open your ACCDB/MDB file, try repairing the file using these steps:

      Notes:

      • These steps apply to Access 2013, 2016, and 2019.
      • Take a backup of the database file before proceeding.
      • Open your MS Access program.
      • On the ‘templates’ screen, double-click ‘Blank desktop database.’
      • In your Access program, click the ‘File’ menu. Next, click ‘Close’ to exit the database.
      • Click Database Tools > Compact & Repair Database.
      Click Database Tools > Compact & Repair Database
      • In the ‘Database to Compact From’ window, locate the corrupt Access database file and select it. Click on Compact.
      locate the corrupt Access database file
      • The ‘Compact Database Into’ window will appear. Specify a new name for the repaired database file, and click ‘Save.’
      Specify new name for the repaired database file

      The repaired file will be saved at the original DB file’s path.

      Method 2: Manually Recover Corrupt Access Database

      There is also a manual workaround to restore DB objects. Follow the step-by-step process below in the given sequence.

      Step 1: Restore the Database from the Backup

      If you’ve a backup of your Access database, try using it to restore the database file. The detailed steps are listed below:

      • Open File Explorer, select and copy the backup file.
      • Paste the copied file at the same location where the corrupt database file is saved.
      • When prompted, replace the existing DB file with the backup copy.

      For detailed information on restoring and backing up an Access database, read this: How to Backup and Restore Access Database?

      Step 2: Delete Microsoft Access Lock Information (.ldb) Files

      An LDB file gets created when an Access db is opened or accessed for shared use (i.e., in a multi-user environment). It has the same name as that of the primary file but has the .ldb extension. This helps in keeping track of all active users accessing the database.

      When the last user closes the file, the lock file is deleted automatically. But, it might not get deleted if the user doesn’t have delete permissions to the Access database (.mdb) file or the database is corrupt.

      Note: Deleting the .ldb file is important to remove the lock on the .mdb file if you want to recover the data from that file.

      Step 3: Use Jet Compact Utility

      Using the Jet Database Engine of Access helps auto-fix minor issues that crop up in the database from time to time while reading and writing data. Due to this, in most cases, you may never even find out that something went wrong.

      Step 4: Remove all Compiled VBA Codes from the Database

      This can be done by using this command line switch:

      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 in a different location.

      Step 5: Import Corrupt Database Objects into a New Database

      Try importing objects into a new Access database file by following these steps:

      • Open MS Access and create a new database file. To do so, click File > New > Blank Database.
      • Next, click the ‘External Data’ tab and select ‘Access’ on the ‘Import & Link’ menu.
      select Access on the Import & Link
      • The ‘Get External Data – Access Database’ dialog box is displayed. Click ‘Browse’ and locate the database file that needs to be imported.
      • Select Import tables, queries, etc., option under ‘Specify how and where you want to store the data in the current database.’ Click OK.
      Select import tables
      • Select all database objects you want to import from the next window and then press the OK button.
      Select all database objects
      • The wizard will begin the process of importing the selected objects from the corrupted MDB file into the newly created database file.
      • Once it has successfully imported the selected database objects, click Close.

      Note: This procedure might also help you repair the Access database file that might have turned corrupt due to damaged system tables.

      Method 3: Use Stellar Repair for Access Software

      Stellar Repair for Access is a powerful DIY software you can use to repair and recover .MDB/.ACCDB file in a few simple steps. This Access database repair tool previews all the recoverable database objects like tables, deleted records, queries, forms, reports, etc. This is useful for the users to verify the data accuracy before saving it.

      Follow these steps to perform Access database repair using the software:

      • Download, install, and run Stellar Repair for Access software.
      • The Select Database window will appear.
      Select Database window
      • Browse for the corrupt Access database file.
      Browse for the corrupt Access database file
      • Click ‘Repair’ to start the repair process.
      Click ‘Repair’ to start the repair process
      • After completion of the repair process, various database object categories will be displayed in the left pane.
      • Click on ‘+‘ to expand each category. Individual objects under that category will appear.
      • Select any object to see its preview.
      Select any object to see its preview
      • To save, click ‘Save Database’ in the ‘Home’ tab.
      Save Database
      • The Save At window will appear.
      • The Default Location option is selected automatically. This is the location of the source database file. You can choose this or select the New Location option if you want to save the repaired database file at a new path on your local storage drive.
      • After selecting an option, click OK to save the repaired database file.
      Select Destination

      The file will be saved at the desired location.

      Wrapping Up

      There can be umpteen reasons that can turn an Access database (MDB/ACCDB) corrupt. These include large database file size (greater than 2GB), hardware issues like bad sectors, or more. You can manually compact and repair the database.

      But sometimes, the MS Access built-in ‘Compact and Repair’ utility may not properly fix the corrupted Access database. In that case, you can repair the corrupted database by using a Stellar Repair for Access – a powerful Access database file repair software that can effortlessly repair severely corrupted Access database files.  It can also recover and restore all the database objects from the corrupted file to a new one.

      The common reasons for repeated corruption are: unreliable network connection, faulty hardware, damaged database structure, and others. One way to avoid this issue is to split the database into front end and back end.
      Look for these – random error prompts, slow DB performance, not able to open particular elements (forms and reports), or frequent application/database crashes.
      Yes. You can restore selected objects from the corrupted database rather than repairing the whole database by using Stellar Repair for Access.
      The utility may not work if there is significant corruption or damage to system tables or if the database file exceeds the size restrictions. This situation calls for more sophisticated repairs and tools such as Stellar Repair for Access.
      In this case (database file exceeded 2GB), the chances of corruption significantly increase. So, it is recommended to compact the database or split it.

      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 gam...

      94 comments

      1. Sending my database for repair was out of the question since my access database contained extremely confidential data.
        After ambling around for solutions, I came across your article, which compelled me to give the demo version of Stellar Repair for Access a try.
        I thought this was also one of that software, which makes big promises but fails to deliver, but this was not the case.
        I was able to preview all the objects in the demo version, so I immediately bought the software, and the software performed as promised.
        Thanks for sharing such a valuable piece of information, looking forward to more of your informative posts.
        Thanks and regards,
        Jamie Anderson

      2. My Access Database was corrupted I’ve tried to repair it with compact &repair tool but not recovered the file. now I’ve tried to download your free tool but the downloaded file have no extension so its not work so please provide me the trial version to check your products performance to buy full version

      3. Hello Jyoti,
        I have a database on network drive which is used by many users, the size of .mdb file is 26 mb. It got corrupt many times and shows different errors each time. Could you please help me in fixing this issue.
        Thanks.

      4. Hi ,
        I am working on Access 2007 , when i tried ” repair and compact” the Entire File got deleted by itself and i am not able to find where the file is moved now … Pl help …

        1. Hi Ashwin,

          When a file compacts, it creates a copy of itself usually named db.accdb or database.accdb and once it’s finished it deletes that file and puts back the original file. That said, if anything happens to interrupt that process the file would self-delete which is why we always recommend they attempt the repair on a copy of the file.

          Therefore, if you cannot find it anywhere, including your recycle bin then it is gone. In this case, you can try Stellar Windows Data Recovery software to recover your deleted file. Know more about this software from here.

      5. Hello,

        I got the corruption in MS Access database. I read about compact and repair option during my training so tried it first, but not restored my complete data. Few data entries were missing from the table. Stellar Access database repair fixed the corruption.

      6. I have just bought this product to repair an access database. I have ran it and it said the database was recovered successfully but when I go to save it I get the following error: “Unable to stablize the connection, please restart the application”. I have restarted several times but have had no luck. Can you help?

        1. Hi Eithne,

          In this situation, you can contact our support team at support[at]stellarinfo[dot]com

          Good Luck!

      7. Hi I have used This software but all the tables are not there,
        what can I do? to get them back? please help

        thanks

        Jim

        1. Hi James,

          After scanning the corrupt file, A user is able to see the preview of data including tables, triggers, view, functions etc. You are unable to see the table it means, the file is severely corrupted.

          You can also contact our support team at support@stellarinfo.com

          Good Luck!

      8. Hello I have backend in ms access 2010 on the network and the front end on the local c:\ drives. Last week it started running really slow. I compacted both front end and back end. What more can I do? Would rebuilding the backend help?

        1. Hi Marco,

          There are several reasons that make the database performance slow:

          • Unnormalized tables
          • Garbage values
          • Virus or malware

          With all these, if that printer is a network printer, then the slow down can occur when access attempts to check/inquire about the printer (and it does this for things like form design, report design, and a good number of other places where you would not expect such slow downs).

      9. I found that, when I closed the database then ldb was automatically deleted. If user doesn’t have the delete right, then it is not possible to delete the ldb file when the database is opened.​

      Leave a comment

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

      Google Trust
      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

      BitRaser With 30 Years of Excellence
      Technology You Can Trust
      Data Care Experts since 1993
      ×