A family of Microsoft relational database management systems designed for ease of use.
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:
- 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.
- 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.
- 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).