Skip to content
Auscultby NBIT
EN
Free diagnostic

Use case

Access 64-bit compatibility check: will your database run on 64-bit Office?

A new PC with Microsoft 365, and the database that worked yesterday now says “The code in this project must be updated for use on 64-bit systems”. The diagnostic tells you, before or after the switch, what breaks, where, and what to change.

What you see

Since Office 2019 and Microsoft 365, the 64-bit edition is the default install. An Access application written for 32-bit Office may then stop as soon as it opens, or only on some forms. The messages Access shows:

This page is about the checking tool. To understand the error and fix it yourself, step by step, read our guide on how to fix an Access application that no longer opens on 64-bit Office.

Compile error: The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute.

64-bit Access, when compiling or opening a form
  • “Compile error: Can't find project or library”: a reference points to a library that is missing on the PC, often a component that only exists in 32-bit (see that error);
  • an ActiveX control (calendar, grid, progress bar) that no longer shows, or a form that refuses to open;
  • built-in Access functions suddenly “unknown” in queries, because a module no longer compiles.

Why it is hard to find by hand

The VBA compiler stops at the first line it rejects. You fix one Declare, compile again, and it flags another one in another module. An application can also work almost everywhere except on the form nobody opens until year-end. What you need is the complete list: every declaration, every reference, every form affected.

For the background, read why an Access application stops opening on 64-bit Office, and the Office end-of-support timeline to see when this will hit you.

What the diagnostic reports

The program copies your application, opens it in Access in the background, then tries every form, every report, every query and the safe buttons, recording what Access answers. It also reads the VBA code and the project references. On this topic it reports:

  • every Declare statement without PtrSafe, with its module, line and name: a high longevity risk, flagged even when the analysis runs on 32-bit Office;
  • a proposed fix for those declarations: today's line and the suggested line (Declare PtrSafe, and LongPtr for handles and pointers), for your developer to review;
  • on 64-bit Office, the forms, reports and buttons that depend on them, marked “fails on 64-bit Office”: one cause, counted once, instead of twenty separate faults;
  • broken references and libraries that only exist in 32-bit or that Office no longer ships (old DAO 3.x library, Calendar control, Office Web Components).
A fault in the report: the screen, the Access message, the cause and the fix
From the report of our demo application: a fault, the form involved, the error box recorded in Access, and the proposed fix.

What it does not do

The diagnostic does not change your application: it tells you what to change, it does not change it. It does not try anything that could have an effect outside the copy (printing, email, deletions, writing a file): those items are listed as “to check” by hand. Anything it could not reach is marked “not verified”. A reference that is broken on the analysis PC but present on yours is not counted as a fault: it is reported separately.

All articles

Frequently asked questions

Do I need a PC with 64-bit Office to run the check?

No. The program runs on the PC where Access is installed, 32-bit or 64-bit. On 32-bit Office, Declare statements without PtrSafe are reported as a risk; on 64-bit Office you also see the forms that actually stop.

Does it fix the code?

No. It never modifies the application. The full report gives, for each declaration, the current line and the suggested one: you or your developer make the change, then a follow-up analysis shows whether the grade moved.

Does my data leave my computer?

No. The analysis runs on your PC, on a copy. The data in your tables is never sent; the program's first screen shows exactly what is sent to our service.

What about an .accde or .mde file with no readable code?

Compiled code cannot be read, so the declarations cannot be listed. Forms and buttons are still tried, and the report says what could not be read.

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.