Skip to content
Auscultby NBIT
EN
Free diagnostic

Use case

Access database works on my PC but not on a colleague's

The same file, the same database: on your PC everything works; on a colleague's, a button fails, a form stays blank or Access refuses to compile the code. The file is almost never to blame: the PC is what differs. Here are the seven differences to check, in the order to look for them.

Compare the two PCs first

On each PC, open File › Account › About Access: the window gives the version, the build number, 32-bit or 64-bit, and whether it is Microsoft 365 or a perpetual version (2016, 2019, 2021, 2024). Also note whether the colleague has full Access or only the free Runtime.

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”.

1. A missing reference

In the colleague's VBA editor, Tools › References: a line marked "MISSING:" points to a library ticked on your PC and absent from theirs. The symptom is confusing: "Can't find project or library" fires on an everyday function like Format() or Left(), which has nothing to do with it. Details in Can't find project or library.

Microsoft Visual Basic for Applications box: “Compile error: Can't find project or library”
The real box, captured in Access for Microsoft 365, in English: the database references an Access library that has since been moved, and the call to Format() no longer compiles.

2. 32-bit Office on one PC, 64-bit on the other

Code that declares Windows functions (Declare) without the PtrSafe keyword does not compile in 64-bit, and old ActiveX controls (calendar, multi-column lists, common dialogs) often exist only in 32-bit. See the PtrSafe compile error and Access 32-bit or 64-bit.

3. A path written for your PC

A drive letter Z: that only exists on your PC, a C:\Users\your-name folder, linked tables pointing to a path the colleague cannot see: Access answers with error 3044. Fix: a full network path (\\server\share\…), and tables relinked at startup by code rather than by hand.

4. Blocked macros

A database received by email or downloaded carries the "Mark of the Web": Office then blocks VBA macros, Access included, with a "Security Risk" banner. The same goes for a database opened from a share reached by its IP address. Fix: Properties › Unblock on the file, or a trusted location.

5. A missing ODBC source

Tables linked to SQL Server through a data source name (DSN) created only on your PC, or an ODBC driver the colleague does not have: the tables do not open, with error 3151. Fix: a full connection string in the linked tables, and the same driver installed everywhere.

6. Different regional settings

Code that builds SQL by pasting a date or a number as it is displayed depends on the Windows settings: a British date "01/02/2026" is read as 2 January by the Access engine, and an amount "12,5" on a PC set to a decimal comma splits the query in two, with error 3075. On a colleague's PC set up differently, the same button works, or the other way round.

The result depends on the PC's date format and decimal separator.
strSQL = "SELECT * FROM Orders WHERE OrderDate >= #" & Me.txtFrom & "#"
strSQL = strSQL & " AND Amount > " & Me.txtThreshold
ISO date and a number with a decimal point: the same SQL on every PC.
strSQL = "SELECT * FROM Orders WHERE OrderDate >= " & Format(Me.txtFrom, "\#yyyy-mm-dd\#")
strSQL = strSQL & " AND Amount > " & Str(Me.txtThreshold)

7. Insufficient rights on the shared folder

When it opens the database, Access creates a lock file (.laccdb) next to it. If the colleague's account cannot create and delete files in that folder, the database opens read-only, or not at all: see error 3051.

Find every difference in one go

Run on the PC with the problem, if it has full Access, the Auscult diagnostic tries every form, every report and every query in that PC's Access, and tells you what fails, with the cause: missing reference, code that does not work in 64-bit, path not found. Run on both PCs, it gives two free summaries to compare. See the Access database audit.

Sources

All articles

Frequently asked questions

Why does the error fire on Format() or Date(), which work everywhere?

Because a single missing reference stops VBA from resolving every name in the project. It stumbles on the first function it meets, even if it has nothing to do with it. Fix the reference marked "MISSING:", then recompile.

Do all PCs need the same Office?

That is the safest option: same version and same 32-bit or 64-bit edition. Otherwise, the database must be tried on every configuration in use in the organisation.

The colleague only has the Runtime: what changes?

No Navigation Pane, no Design view, and an unhandled VBA error shuts the application down. See Free Access Runtime.

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.