Repairing a corrupted Microsoft Access MDB database means working from a copy, running Access's built-in Compact and Repair first, then escalating to backup restoration, /compact command-line recovery, or third-party tools only if that fails. The key condition: stop writing to the original file immediately and never run repair utilities against your only copy. Most MDB corruption caused by interrupted writes, network disconnects, or Jet engine errors is recoverable if you preserve the damaged file before touching it.
This guide covers the classic .mdb format used by Access 2003 and earlier (and still readable by later versions), not the .accdb format introduced in Access 2007. The recovery logic overlaps, but file-level tools differ. Everything below assumes a Windows environment with Access installed; a reference date of November 2026 doesn't change the fundamentals, though exact menu labels vary by Access version.
Why MDB Files Corrupt and What You're Actually Fixing
An MDB file is a Jet database: a single file containing tables, indexes, queries, forms, reports, macros, and security settings. The Jet database engine (later renamed ACE) manages pages inside that file and tracks them through a header and transaction log behavior. Corruption typically hits one of three layers.
Structural corruption affects the file header or page allocation map. Symptoms include "Unrecognized database format," "The database has been placed in a state by user 'Admin' on machine X that prevents it from being opened or locked," or a file that opens but shows no objects. This is what Compact and Repair targets.
Object-level corruption damages specific tables, indexes, or memo fields. You may open the database but get "Record is deleted," error 3343 ("Unrecognized database format"), or crashes when opening a particular form. Indexes can be rebuilt; damaged table pages are harder.
Logical corruption means data is internally inconsistent — orphaned records, broken relationships, or memo fields that display garbage. No repair tool fixes this automatically; you extract what's readable and rebuild.
The causes matter because they predict severity. Power loss during a write, a network share disconnecting mid-transaction, or hitting the 2 GB MDB size limit mid-operation often produces structural damage that Compact and Repair handles well. Repeated crashes, bad RAM, or a failing disk produce scattered corruption that may recur after repair — a repaired file that corrupts again points to hardware, not the database.
Prerequisites: What to Gather Before You Touch Anything
Before any repair action, complete these steps. Skipping them is how people turn a recoverable file into permanent data loss.
1: Locate every copy. Check the working folder, Recycle Bin, email attachments, Windows File History, OneDrive/SharePoint version history, and any scheduled backups. A recent backup is a better recovery path than any repair tool. 2: Make the original read-only. Right-click the .mdb file, choose Properties, check Read-only. This prevents accidental writes while you work. 3: Copy the file to local storage. Work from a copy on a local drive, never a network share or USB stick. Network I/O is a common corruption trigger, and repair over a network path can make things worse. 4: Note the file size. An MDB approaching 2 GB is at its hard limit; a suddenly tiny file (a few KB) suggests a truncated write. 5: Close all Access instances and check for lock files. Delete or rename any .ldb file next to the MDB, but only after confirming no user has it open — the .ldb tracks active users, and deleting it while someone is connected invites more corruption. 6: Identify your Access version. Access 2016 through Microsoft 365 can open MDB files; the repair menus are similar but labeled slightly differently.
Success check for this phase: you have a byte-identical copy of the damaged file on a local drive, the original is read-only, and you know whether a backup exists. If a good backup exists and is recent, restore it and stop — repair is for when backups fail.
Step 1: Try Compact and Repair Database
This is the built-in tool and your first real attempt. It rebuilds the database file, reconstructing indexes and reclaiming space, and it recovers many structural problems.
1: Open Access without opening the database. 2: Go to File > Open, browse to your copied .mdb file, and select it. 3: Click the arrow next to the Open button and choose Open Exclusive (not just Open). Repair requires exclusive access. 4: If the file opens at all, go to Database Tools > Compact and Repair Database. 5: If Access prompts for a backup, accept it. 6: Let the process finish without interrupting it, then close and reopen the database.
If the database won't open normally, try File > Open > Open and Repair instead. That option runs a lighter repair pass during the open operation and sometimes succeeds where a normal open fails.
Expected result: the file reopens with all objects visible and no errors on basic table browsing.
Success check: open several tables, run a query, and compile VBA (Debug > Compile in the VBA editor). If it compiles without errors and tables show expected row counts, you're likely done. Stop condition for this step: if Compact and Repair reports "The Microsoft Access database engine could not find the object" or the process crashes, move to Step 2 rather than retrying repeatedly — each failed repair attempt on the same copy risks further damage.
Step 2: Recover from Backup or Version History
If you have File History enabled (Windows 10/11), right-click the file and choose Restore previous versions. If the MDB lived in OneDrive or SharePoint, use the version history in the web interface. For server-hosted files, check with IT about volume shadow copies.
Restore to a new location, open it, and verify row counts against what you expect. A backup from yesterday beats a repaired file from today only if the repaired file is trustworthy — so compare both if you have them.
Limit worth knowing: restoring an older backup loses recent transactions. If the database had no transaction logging (MDB files don't maintain a redo log by default), there is no way to replay the gap. Accept the data loss or combine: restore the backup for structure, then use the damaged file to extract the missing recent records into the restored copy.
Step 3: Command-Line Compact and Repair
Access ships a command-line switch that runs repair without opening the full application. This sometimes succeeds when the GUI fails because it skips loading add-ins and startup code.
Open Command Prompt and run, adjusting paths:
"C:\Program Files\Microsoft Office\root\Office16\MSACCESS.EXE" "C:\Recovery\damaged.mdb" /compact "C:\Recovery\repaired.mdb" /repair
The /repair switch forces a repair pass; /compact writes to a new file, leaving the original untouched — which is exactly what you want. Output to a new filename every time.
Expected result: a new MDB file appears in the target folder. Success check: open the new file in Access, verify object counts and spot-check tables. If the command returns an error code or produces a zero-byte file, the corruption is beyond Jet's self-repair.
One caveat: on 64-bit Office, the executable path differs, and a 32-bit Access install may live under Program Files (x86). Find your actual MSACCESS.EXE path rather than assuming.
Step 4: Extract Objects into a Fresh Database
When repair tools open the file partially, salvage what you can by importing into a clean database. This isolates good objects from bad.
1: Create a new empty .mdb (or .accdb) file. 2: In the new database, go to External Data > New Data Source > From Database > Access. 3: Select the damaged file as the source. 4: Import objects one category at a time — tables first, then queries, forms, reports, macros, modules. 5: When an import fails, skip that object and continue. Note which ones fail.
Expected result: most tables import cleanly, and the failures cluster around specific objects.
Success check: the new database opens without errors and table row counts match your expectations from documentation or memory. Limit: this method only works if Access can read the source file at all. If it can't open the file even to list objects, skip to Step 5.
A useful refinement: import tables without their indexes if index corruption is suspected. In the import dialog, choose "Definition and Data" but deselect indexes where offered, then rebuild indexes afterward with a compact operation. Damaged indexes are a common cause of "Record is deleted" errors and rebuilding them from scratch often clears symptoms.
Step 5: Diagnose with Error Codes and Targeted Fixes
Specific errors point to specific remedies, so capture the exact message before escalating.
| Symptom or error | Likely cause | First action |
|---|---|---|
| "Unrecognized database format" | Header/page map damage or wrong file version | Verify file extension and Access version, then run /repair |
| Error 3343 | Corrupted file header or partial write | Copy again from source media; try /compact to new file |
| "Record is deleted" on browse | Damaged index | Rebuild indexes; import table without indexes |
| Crash opening a specific form | Corrupted form object or bad VBA reference | Decompile VBA, import form into fresh DB |
| File opens but shows no objects | Damaged system tables | Import into new DB; check permissions |
| File size at 2 GB | Jet size limit reached | Compact, split data, or migrate to SQL Server |
For VBA-related crashes, the decompile trick sometimes helps: run MSACCESS.EXE /decompile with the database path, then open it and immediately compact. This clears compiled code caches that can carry corruption. It's a diagnostic measure as much as a fix — if the database only works after decompile, suspect a code module issue rather than file-level damage.
Stop condition: if error codes recur after import into a clean database, the source data itself is suspect and further tooling won't help. That's when you move to third-party recovery.
Step 6: Third-Party MDB Recovery Tools
Commercial recovery utilities exist specifically for Jet/MDB files — vendors like Stellar, EaseUS, Systools, and others sell Access repair tools. They parse the file structure directly and can often extract tables and records from files Access itself can't open.
How to evaluate one without wasting money:
Test on your actual file first. Reputable tools offer a free scan that shows recoverable objects before purchase. If the scan preview shows your tables with plausible row counts, the paid recovery is likely to work. Check demo limitations. Most demos show recovered data but won't save it. The preview quality is the signal, not the saved output. Prefer tools that write to a new file and support both .mdb and .accdb. Verify vendor claims against your Access version — an old tool may not parse files created by recent builds.
There's no reliable way to rank these tools from memory, and effectiveness varies by corruption pattern. The practical approach: run the free scan with two different vendors on the same copy and compare which recovers more of your specific objects. Pay for the one whose preview matches expectations.
Limit: third-party tools recover what's structurally readable. Deeply scrambled data pages may come back as partial records or garbage. Budget for manual cleanup of recovered output — duplicate keys, truncated memo fields, and broken relationships are common.
Step 7: Build a Clean Database and Re-Link
After any successful extraction, finish the job properly rather than declaring victory.
1: Create a new database file with the same or newer Access version. 2: Import recovered tables, then rebuild primary keys and indexes explicitly. 3: Recreate queries, forms, reports, and macros — import them where possible, rebuild where corrupted. 4: Re-establish relationships in the Database Tools > Relationships window. 5: Re-apply security settings, startup options, and linked-table connections. 6: Run Compact and Repair on the finished file.
Success check: every form opens, every report previews, and a test of the primary workflows runs without errors. Set the repaired file as the working copy only after this verification, and keep the damaged original archived (read-only) in case later issues need investigation.
Preventing the Next Corruption
Repair is a rescue operation; prevention is cheaper. The patterns that trigger MDB corruption are well known.
Keep files off network shares for active use. Jet over SMB is fragile. For multi-user access, split the database: back end on a file server, front ends on each workstation, and accept that split databases still need care. Better, migrate the back end to SQL Server or Access's modern engine. Stay well under 2 GB. Compact regularly, archive old data, and monitor size. Avoid editing across VPNs or flaky Wi-Fi. Interrupted writes are a leading cause. Implement a backup routine that copies the file when it's closed. A nightly copy to a second drive or cloud folder costs little. Don't kill Access processes. Task Manager terminations mid-write are a classic corruption source. Update to a supported Access version. Older builds have known Jet bugs; MDB itself is legacy, and new development should target .accdb or a server database.
If a repaired database corrupts again within days, stop repairing and investigate hardware: run disk diagnostics, check for failing RAM, and verify the file isn't syncing through a cloud client that rewrites it mid-use. Recurring corruption is a infrastructure symptom, not a database one.
When to Bring In a Professional
Two situations justify paid expertise rather than more attempts: the data is irreplaceable and third-party scans recover little, or the database is business-critical and downtime matters more than tool costs. A database recovery specialist can parse MDB structures with custom tooling beyond retail software. Before that, exhaust backups and version history — they're free and often overlooked.
For very large or heavily used MDB files, the strategic answer isn't repair at all: migrate to a client-server database where a single corrupted file can't take down everything. That's a project, not a fix, but it's the durable solution to a format that Microsoft itself has deprecated. MDB files still work in current Access versions, but they're legacy — treating them as such in your planning prevents the next emergency.
One last practical note: after any repair, open the recovered file on a machine other than the one where corruption occurred. If it opens cleanly there, the file is fine and the original machine has a problem. If it fails everywhere, the corruption is in the data, and you've confirmed the repair attempt's limits before trusting it.