Skip to content
Auscultby NBIT
EN
Free diagnostic

Use case

Access 32-bit or 64-bit: how to check, why it matters

An Access database works on one PC and not on another; the consultant asks “is your Office 32-bit or 64-bit?”. The answer takes thirty seconds to find. It matters, because a database written for one does not always run on the other.

How to check, in thirty seconds

  1. In Access, open File › Account, then click About Access. The first line of the window ends with “32-bit” or “64-bit”. In Access 2010, the information is under File › Help.
  2. Or, with Access open, in Windows Task Manager: on 64-bit Windows, a 32-bit Access is followed by “(32 bit)” on the Processes tab; the Details tab has a Platform column you can display.
  3. Or, in the VBA editor's Immediate window (Ctrl+G), with the function below: it returns 32 or 64.
The About Microsoft Access for Microsoft 365 window: the first line gives the version and ends with “64-bit”
The “About Microsoft Access” window, opened in Access for Microsoft 365: the first line ends with “64-bit”.

Beware the common confusion: 64-bit Windows does not mean 64-bit Office. Almost every recent Windows is 64-bit, and 32-bit Office installs on it perfectly well. What matters for your database is Office.

Why it matters

Since Office 2019 and Microsoft 365, Office installs as 64-bit by default. Many Access databases were written on 32-bit Office. On a new PC, several things can break:

  • Declare statements that call Windows: without the PtrSafe keyword, the code no longer compiles — see the PtrSafe compile error;
  • ActiveX controls and libraries that only exist in 32-bit: calendars, grids, old libraries, which vanish from the form or cause “Can't find project or library”;
  • compiled .accde and .mde files: a database compiled by 32-bit Access does not open in 64-bit Access, and vice versa; it has to be recompiled from the source file;
  • exchanges with other programs: an ODBC driver or an external program that reads the database must match the architecture of the installed Access engine.

Writing code that runs on both

Compatible code is written once: PtrSafe on every Declare, and LongPtr for window handles and pointers. LongPtr is a Long in 32-bit and a LongLong in 64-bit. The #If VBA7 block is only needed for very old Office versions (2007 and earlier).

32-bit or 64-bit: which to choose?

If all your databases and their add-ins are ready for 64-bit, keep the default. If a critical database depends on a 32-bit component with no equivalent, installing 32-bit Office is still possible, but it only postpones the problem: fixing the database is the lasting solution. You cannot mix the two on one PC: all the Office applications on a PC share the same architecture.

What the diagnostic checks

Auscult runs on 32-bit or 64-bit Access. On 32-bit Office, it records each Declare without PtrSafe as a risk, with the suggested line. On 64-bit Office, it also shows the forms, reports and buttons that actually stop, marked “fails on 64-bit Office”: one cause, counted once. The details are on the 64-bit compatibility check page.

All articles

Frequently asked questions

My Windows is 64-bit: is my Access too?

Not necessarily. 64-bit Windows accepts 32-bit Office as well as 64-bit Office. Check in Access, File › Account › About Access.

Can I switch from 32-bit to 64-bit Office without reinstalling?

No: Office has to be uninstalled, then the 64-bit version installed. Before doing it, check that your Access databases support it.

My .accde no longer opens on the new PC: is it related?

Very likely, if the new PC is 64-bit and the old one 32-bit. An .accde is recompiled from the original .accdb, on an Access of the same architecture as the PCs that will use 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.