Skip to content
Auscultby NBIT
EN
Free diagnostic

Use case

Convert .mdb to .accdb in Access: method and pitfalls

An Access `.mdb` database still opens in current versions, but it misses what the `.accdb` format has brought since Access 2007. The conversion takes a few minutes; what needs care is everything around it: security, linked tables, references.

Before converting

  • Make a copy of the .mdb file. The conversion creates a new file and leaves the original untouched, but a backup copy never hurts.
  • Check the format: Access converts .mdb files in Access 2000 or 2002-2003 format. An Access 97 file no longer opens in Access 2013 and later: it must first be converted with an older version (Access 2010, for instance).
  • An .mde cannot be converted: it is a compiled version, without the source code. You need the original .mdb.
  • A replicated database must first be turned back into an ordinary database: the .accdb format does not support replication.
  • User-level security (.mdw workgroup file, accounts and permissions) does not exist in .accdb: it is lost in the conversion. Plan another protection before converting.

The conversion, step by step

  1. Open the .mdb in Access (2010 or later), as the only user.
  2. File › Save As, then Save Database As and **Access Database (*.accdb)**.
  3. Choose the name and folder of the new file: Access creates and opens it; the .mdb stays as it is.
  4. In the VBA editor, Tools › References: no line should be marked “MISSING”.
  5. Debug › Compile: fix what the compiler reports, then Compact and Repair.
Save Database As pane in Access: “Access Database, default database format” selected, next to Access 2002-2003 and Access 2000
File › Save As with an .mdb open, in Access for Microsoft 365: “Access Database”, the default format, is the .accdb.

A database split into two files

Convert both: the back end, then the front end. Then open the converted front end and relink its tables to the new back end with the Linked Table Manager: otherwise it keeps reading the old .mdb, or stops on error 3044 if that file was moved.

What the conversion does not fix

The format changes, the content stays: queries, forms and code are carried over as they are, faults included. A Declare without PtrSafe will still stop on 64-bit Office (how to tell whether your Office is 32-bit or 64-bit), a reference to a missing library will still be missing, a path written for the author's PC will still be wrong. And whatever relied on .mdw security is no longer protected.

The Auscult diagnostic accepts .mdb files as well as .accdb. Run before the conversion, it shows what works and what already stops; run again on the converted file, it shows whether anything changed. See the Access database audit.

All articles

Frequently asked questions

Do I have to convert an .mdb?

No: current versions of Access still open .mdb files in 2000 and 2002-2003 format. Converting gives access to recent features and stronger encryption; it is also a good moment to take stock of the database.

Does the VBA code need rewriting?

Usually not: it is carried over as is. What breaks tends to come from references, 32-bit components and paths, to be checked after the conversion.

Do users need to change anything?

They open the new .accdb file instead of the old one: remember to update the shortcuts, and to remove the old .mdb so nobody keeps entering data in it.

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.