How to fix "ODBC -- connection to '__' failed"

Culcasi, Madison (DEP) 0 Reputation points
2026-02-02T14:51:42.0233333+00:00

I have a new work laptop (HP, Windows) and I cannot connect to my company's tables (queries) on Access. I am able to open databases from our SharePoint created by my team, but when I try to open a query or any sort of table, I get the ODBC connection failed notification. My IT can't figure out what how to fix this and neither can I. Thank you!

User's image

Microsoft 365 and Office | Access | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Nacif Boudlal 0 Reputation points
    2026-12-01T08:57:35.7333333+00:00

    Hi,

    Since the database itself opens and only the tables fail, the database is fine: those tables are ODBC links to a server, and the ODBC setup lives on each PC, not in the Access file. A new laptop usually lacks one of these three things:

    1. The data source (DSN). Linked tables often refer to a DSN by name, created long ago on the old PCs. The name between the quotes in the message is the lead. To read the full connection string of a table, open the VBA editor (Alt+F11), press Ctrl+G and type: ? CurrentDb.TableDefs("TheTableName").Connect If you see "DSN=Something", that DSN must exist on the new laptop with exactly the same name.
    2. The right bitness. 64-bit Office only sees 64-bit DSNs and drivers, 32-bit Office only 32-bit ones. On 64-bit Windows there are two ODBC administrators: C:\Windows\System32\odbcad32.exe (64-bit) and C:\Windows\SysWOW64\odbcad32.exe (32-bit). Check which Office you have (File > Account > About Access) and create the DSN in the matching one. A new laptop often comes with 64-bit Office when the old PCs had 32-bit.
    3. The driver. If the DSN uses a driver (for example "ODBC Driver 17 for SQL Server", or an Oracle/MySQL driver) that isn't installed on the laptop, install it in the same bitness as Office.

    Then use "Test" in the ODBC administrator: if the test fails there too, the problem is the network, VPN or account, not Access. If it succeeds, reopen the database and the tables should work.

    To avoid this on the next PC, the tables can be relinked with a full connection string instead of a DSN (the driver still has to be installed). I detailed the checks and the relink here: https://auscult.nbit-tech.fr/en/access-error-3151.html?utm_source=msqa&utm_medium=forum (disclosure: I make Auscult, the linked site).

    Was this answer helpful?

    0 comments No comments

  2. Anonymous
    2026-02-03T00:56:35.62+00:00

    Hi Culcasi, Madison (DEP)

    Thank you for reaching out to Microsoft Q&A Forum and sharing your experience.

    Based on community experience, please try the troubleshooting steps outlined in the following article, which covers common causes of Access ODBC connection failures: https://community.spiceworks.com/t/how-to-fix-access-error-3151-odbc-connection-failed/1014393

    Note: Microsoft is providing this information as a convenience to you. This site is not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.

    Additionally, there have been multiple user reports of similar behavior in the Microsoft Q&A community. In particular, the following thread describes a very similar issue involving Access‑based ODBC connections failing after environment or Office changes, and it may be useful to review the workaround discussed there: MS Excel Power Pivot connection issue with MS Access Odbc - Microsoft Q&A

    If the issue persists after completing those steps, you may consider rolling back to a previous working version of Office as this problem has been reported by other users following recent updates.

    As a last resort, please ask your IT administrator to contact Microsoft Support for further investigation, as this may require environment‑specific analysis. For further instructions, please follow this guide: Get support - Microsoft 365 admin | Microsoft Learn. 

    If I have misunderstood your situation, please don't hesitate to clarify, and I will adjust my recommendations accordingly. I'm looking forward to seeing your response soon. 


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.