How to Fix “ODBC–Call Failed” in Microsoft Access

“ODBC–call failed” (Access error 3146) is a general message. Access shows it when SQL Server or another database returns an error through the ODBC driver. The real cause is in the text after the colon, or in the DAO Errors collection. Most cases come from a dropped network connection, an old or wrong ODBC driver, a login problem, a query timeout, or a recent Office update. Start by reading the full error message, then test the connection in the ODBC Data Source Administrator.

How to Fix "ODBC--Call Failed" in Microsoft Access
Reviewed by Juan Soto
Founder of IT Impact · Microsoft Access MVP 15 times
15x MVP
Last updated:

Contact Us Today

Call +1 773.809.5456, email [email protected], or send us a message using the form below.

What “ODBC–call failed” means

Access talks to SQL Server, Azure SQL, MySQL, and other databases through an ODBC driver. When the database or the driver reports a problem, Access shows its own message, “ODBC–call failed”, and then adds the database’s message after it. That second part is the one that tells you what really went wrong.

Example of a full message:

Copy to Clipboard

Here, the real problem is the login, not ODBC.

How to Fix “ODBC–Call Failed” in Microsoft Access

Quick fix table: match your error message

Text after “ODBC–call failed” Likely cause What to do
An existing connection was forcibly closed by the remote host (#10054) / Communication link failure The network dropped, the VPN disconnected, or the server closed the connection. Microsoft also lists this when opening very large Azure SQL linked tables. Check the network and VPN, then reconnect. For large tables, open a filtered view instead of all records (Step 7).
SSL Provider: The certificate chain was issued by an authority that is not trusted ODBC Driver 18 encrypts connections by default and checks the server certificate. Install a trusted certificate on SQL Server (best). On a trusted internal network, you can set Trust Server Certificate = Yes (Step 4).
Login failed for user (#18456) Wrong user name or password, or the login has no access to the database. Check the login in SQL Server, then relink the tables (Step 5).
Query timeout expired A query ran longer than the ODBC timeout. Speed up the query or raise the timeout (Step 6).
Data source name not found and no default driver specified (IM002) The DSN does not exist on this PC, or it was created in the wrong 32-bit/64-bit ODBC Administrator. Create the DSN in the ODBC Administrator that matches your Office bitness (Step 2).
Incorrect syntax near ‘=’ (#102) when saving a record A known bug in Microsoft 365 Version 2604 with NVARCHAR(MAX) fields. Microsoft fixed it on April 28, 2026. Close and reopen Access to get the fix, or update Office (Step 7).
Violation of PRIMARY KEY constraint (#2627) The record has a key value that already exists. Fix the data or the form that creates the key.
The INSERT statement conflicted with the FOREIGN KEY constraint (#547) The record points to a parent record that does not exist. Add the parent record first, or fix the value.

Step 1: See the full error message

Sometimes Access only shows “ODBC–call failed” with no details. The full list of errors is in the DAO Errors collection. Add this routine to a standard module:

Copy to Clipboard

Then call it from the error handler of the code that fails:

Copy to Clipboard

Open the Immediate window (Ctrl+G) to read the errors. Use dbSeeChanges when you run action queries on SQL Server tables that have an IDENTITY column.

Step 2: Test the connection in the ODBC Data Source Administrator

Windows has two ODBC Administrators: one for 32-bit programs and one for 64-bit programs. Use the one that matches your version of Office.

  1. Check your Office bitness: in Access, go to File > Account > About Access.
  2. Open the matching tool: search Windows for “ODBC Data Sources (64-bit)” or “ODBC Data Sources (32-bit)”.
  3. Find your DSN on the User DSN or System DSN tab, click Configure, and run Test Data Source.
  4. If the test fails, the problem is the connection or login, not Access.

Step 3: Refresh the linked tables

If the server, database name, or login changed, the links in Access may still point to the old settings. Go to External Data > Linked Table Manager, select the tables, and choose Refresh or Relink. Then try again.

Step 4: Use a current ODBC driver

Old drivers cause many ODBC errors. For SQL Server and Azure SQL, use ODBC Driver 18 (or 17) for SQL Server. Avoid the very old “SQL Server” driver and SQL Server Native Client, which are no longer updated.

Important: ODBC Driver 18 turns encryption on by default and checks the server certificate. If your SQL Server uses a self-signed certificate, you will see a certificate trust error. The best fix is to install a trusted certificate on the server. On a trusted internal network, you can check “Trust server certificate” in the DSN, or add TrustServerCertificate=Yes to the connection string.

Step 5: Check the login and permissions

Make sure the SQL Server login or Windows account can connect to the database and has rights to read and write the tables. If you use Windows authentication, check that the user is in the right Active Directory group. After any change, relink the tables.

Step 6: Fix query timeouts

By default, Access waits 60 seconds for an ODBC query. If a query takes longer, it fails. The best fix is to make the query faster: add indexes on SQL Server, or move the query to a SQL Server view or stored procedure. Our Access to SQL Server guide explains how. If a query really needs more time, raise the timeout for that pass-through query:

Copy to Clipboard

Step 7: Check for Office update problems and very large tables

If the error started suddenly on several PCs, a recent Office update may be the cause. For example, Microsoft 365 Version 2604 caused insert errors on SQL Server tables with NVARCHAR(MAX) fields, and Microsoft fixed it on April 28, 2026. Close and reopen Access to receive fixes, and check the Access community and Microsoft’s known issues for your version.

For very large Azure SQL tables, Microsoft notes that opening the whole linked table can cause a connection error. Open a form or query that loads only the records you need.

When to get help

Call us if the error affects many users, data might be lost, or you have tried these steps and the error comes back. We fix ODBC and SQL Server problems in Access every week and can usually find the cause in one session.

Frequently asked questions

Error 3146 is the number for “ODBC–call failed”. It means the database server or ODBC driver returned an error. The details are in the rest of the message or in DBEngine.Errors.
Each PC has its own ODBC drivers and DSNs. One PC may have an older driver, a missing DSN, or the other bitness of Office. Compare the driver and DSN on a working PC and a failing PC.

Usually not. It is almost always a connection, driver, login, or server error. Corruption shows different messages, such as “Unrecognized database format”.

Yes. Use the form’s Error event to catch DataErr 3146, then read DBEngine.Errors to show a clear message to the user. Microsoft documents this method in KB 206175.
No. Most ODBC errors are fixed with a driver update, a relink, or a login change. If the errors come from an old or overloaded setup, a proper SQL Server setup can help.

Still Getting “ODBC–call failed”?

We fix ODBC, driver, and SQL Server connection problems in Microsoft Access every week. Our team, led by Juan Soto, a 15-time Microsoft Access MVP, can usually find the cause in one session. Book a free consult, or call us now if your team cannot work.