How to Fix an Access Database That Is Corrupt, Crashing, or Will Not Open

Short answer: To fix an Access database, first make a copy of the file and work only on the copy. Then run Compact and Repair from Access with the database closed. If that does not work, create a new blank database and import the objects from the damaged file. Most corruption comes from the file being shared over a network without being split, from lost connections, or from a database that has outgrown Access. If the data is important or the steps fail, stop and get help before you make more changes.

Fix Access Database
Reviewed by Juan Soto
Founder of IT Impact · Microsoft Access MVP 15 times
15x MVP
Last updated:

Contact Us Today

Call +1 773.809.5456, email [email protected], or send us a message using the form below.

Signs your Access database needs fixing

  • Access shows “Unrecognized database format” or says the database “is in an inconsistent state”.
  • The file will not open, or Access closes while you work.
  • Records show #Deleted or strange characters.
  • Forms, reports or VBA code that worked yesterday now give errors.
  • The file keeps growing, and the database gets slower every week.

These problems often have the same root cause: damage inside the file. The steps below go from the safest to the most advanced.

How to Fix an Access Database That Is Corrupt, Crashing, or Will Not Open

Before you try any fix

1. Make a copy of the file.

Microsoft warns that Access may cut off some data from damaged tables during a repair, so always keep the original.

2. Ask everyone to close the database.

A repair needs exclusive use of the file.

3. Work on a local copy.

Copy the file to your own PC. Do not repair it while it sits on a network drive.

4. Write down the exact error message.

It tells you which fix to try first.

How to fix a corrupt Access database: step by step

  1. Step 1: Run Compact and Repair

    Open Access without opening the database. Go to Database Tools > Compact and Repair Database, select the copy of your file, and save the result under a new name. If Access can only repair part of the file, it lists the objects it could not fix in a table named MSysCompactErrors. See the full guide: how to compact and repair an Access database.

  2. Step 2: Import everything into a new blank database

    Corruption is often inside one object, not the whole file. Create a new blank database, then go to External Data > New Data Source > From Database > Access and import all tables, queries, forms, reports, macros and modules. If one object fails to import, you have found the damaged part. Import the rest, and rebuild or restore only that object.

  3. Step 3: Decompile the VBA project

    If forms or code give strange errors but the data looks fine, the compiled VBA code may be damaged. Make a backup, then open the database with the /decompile switch, then compile and save it again. This clears old compiled code that Access sometimes keeps after many edits.

    Then open the VBA editor and choose Debug > Compile. The path to MSACCESS.EXE can be different on your PC.

Copy to Clipboard

 

  1. Step 4: Fix damaged records

    If one table shows #Deleted or odd characters, the damage may be in a few records or in a Long Text (memo) field. Copy the good records into a new table with a query, leave the damaged rows out, then re-enter them from a backup or a report.

  2. Step 5: Restore from a backup

    If the steps above fail, restore the most recent backup and re-enter the work done since then. This is why nightly backups of the back-end file matter.

What causes Access database corruption?

Cause What happens How to prevent it
One unsplit file shared on the network Many users open the same file with forms, code and data in it Split the database: data (back end) on the server, forms and code (front end) on each PC
Lost network connection, Wi-Fi or VPN Access is writing to the file when the connection drops Use a wired network, or move the data to SQL Server
PC shuts down or Access is forced closed A write is cut off halfway Close Access properly; use a UPS on the server
File near the 2 GB limit Access cannot grow the file and fails Compact regularly; move large data to SQL Server
Windows file-sharing problem Access reports an “inconsistent state” on network files See the inconsistent state guide
Attachments and images stored in tables The file grows fast and becomes fragile Store files on disk and keep only the path in Access
Free tool: Access SQL Converter

When to stop and call an expert

Stop and get help if:

  • The database holds business data you cannot re-enter.
  • Compact and Repair fails or the file gets worse after each try.
  • Corruption comes back every few weeks.
  • Many users work in the database at the same time.

In our experience, repeated corruption almost always means the database has outgrown a shared Access file. The lasting fix is to split it, and for 10 or more users or remote staff, to move the data to SQL Server.

How we fix Access databases

Diagnose

We find the damaged objects and the cause, not just the symptom.

Repair and recover

We repair .accdb and .mdb files, rebuild damaged objects, and recover as much data as possible.

Stabilize

We split the database, fix VBA compile errors, and remove the cause of the corruption.

Prevent

We set up backups, compacting, and, when needed, a move to SQL Server or Azure.

Many repairs are done the same day. Badly damaged files can take longer.

For urgent problems, see Rapid Response Access Support. For ongoing help, see Microsoft Access database support.

Case study: fixing and scaling a multi-location Access database

A franchise company ran a separate Access database at each location and only shared data through monthly reports. We combined them into one system on SQL Azure, set it up so each location sees only its own data, and tuned it for cloud use. The result: real-time reporting across all locations and a database staff can use from the office, home, or on the road.

Frequently asked questions

Usually, yes. Compact and Repair fixes many problems, and importing the objects into a new file fixes most others. Some data in a badly damaged table may be lost, which is why you should always work on a copy.
The most common causes are an unsplit file shared over the network, lost connections over Wi-Fi or VPN, and Access being closed while it writes data. If it happens often, the database has likely outgrown a shared file setup.
It should not delete good data, but Microsoft warns that it may cut off data from damaged tables. Make a backup first.
Try the built-in steps first. If they fail and the data matters, talk to an expert before running other tools on your only copy.
Yes. We work over a secure remote connection, so most fixes do not need an on-site visit.

Is Your Access Database Corrupt or Crashing?

Our team, led by Juan Soto, a 15-time Microsoft Access MVP, repairs damaged Access databases, recovers data, and fixes the cause so it does not come back. Book a free consult and we will review your database.