Skip to content
Auscultby NBIT
EN
Free diagnostic

Use case

Access database corrupt or unrecognized: what to do

This morning the database will not open: “Unrecognized database format”. Or Access says it is “in an inconsistent state”. Before any click, one rule: never work on the only copy. Here are the steps in order, then what causes corruption.

The messages

Microsoft Access box: “Unrecognized database format 'C:\Users\Public\auscult_img\Comptabilite.accdb'.”
The real Access box, in Access for Microsoft 365 in English, when opening a copy of a database whose beginning was erased on purpose.

Unrecognized database format '\\server\admin\Data_be.accdb'.

English Access, error 3343; the quoted path is your file's
  • on a French Access: « Format de base de données (« … ») non reconnu. » ;
  • “Microsoft Access has detected that this database is in an inconsistent state, and will attempt to recover the database”: Access offers a repair itself;
  • no message at all: records shown as “#Deleted”, a form or module that no longer opens, VBA code that crashes Access.

It is not always corruption

“Unrecognized format” also means Access cannot read that format: an .accdb opened by a version that is too old (Access 2003 does not read .accdb files), a database using a recent data type such as Large Number opened by a version that does not know it, or an Access 97 file opened by a recent version, which no longer reads that format. First try opening the database on an up-to-date PC: if it opens, the file is fine.

What to do, in order

  1. Get everyone out of the database, then check that no lock file (.laccdb or .ldb) is left next to the file; if one remains while nobody has the database open, delete it.
  2. Copy the file (and the most recent backup) to another folder. Every following step is done on the copy.
  3. Compact and repair the copy: Access open with no database, Database Tools › Compact and Repair Database, then pick the file.
  4. If the database opens but one object resists, create a blank database and import the objects one by one (External Data › Access): the damaged object is the one that refuses to come.
  5. If VBA code is what crashes, open a copy with the /decompile command-line switch, then recompile (Debug › Compile) and compact.
  6. Otherwise, go back to the last backup and re-enter what is missing. Paid repair tools exist, but a backup is the only guarantee.

Why databases get corrupted

  • an interrupted write: PC switched off or Access killed during data entry, power cut;
  • an unstable network between the PC and the file: Wi-Fi, VPN, remote share — Access writes straight into the file across the network;
  • an unsplit database used by several people at once on a share, forms and data in the same file;
  • different Access versions on the PCs sharing the same database;
  • a file in a synced folder (OneDrive, Dropbox, SharePoint), which is not designed for a file opened by several PCs.

Prevention comes down to three measures: split the database into two files (a front end per PC, the data on the server), a stable wired network, and a checked daily backup. The details are in Access on a network share: corruption, locking and splitting the database.

Once the database is repaired

A repair can leave forms or queries broken without saying so. The Auscult diagnostic needs a database that Access can open — it does not repair files — but on the repaired copy, it tries every form, report and query, and tells you what still works and what stops, with the cause. Among the risks, the report also flags an unsplit database, or server paths written into the code. See the Access database audit.

All articles

Frequently asked questions

Is Compact and Repair risky?

On a copy, not at all. On the original, it rewrites the file: if the repair fails halfway, you can lose what was still readable. Hence the rule: always a copy first.

Corruption comes back every month: why?

Because the cause is still there: a shared database that is not split, a PC on Wi-Fi, different Access versions. Repairing puts the file right; only removing the cause prevents the next one.

Is my data lost?

Rarely all of it. In most cases, the repair or an import into a blank database recovers the tables; what is missing is the latest entries, or one specific object. A recent backup is the only sure safety net.

Where are the other errors in your application hiding?

The diagnostic runs on your computer, on a copy of the application, without sending the data in your tables. The health grade and the summary are free.