开发者

MS Access: Linked Tables - how to get the connection string when linked table manager is not installed

I'm looking after a database while its author is o开发者_开发知识库n holiday. The server it's running on has no linked table manager, and the db is giving me an error - "ODBC --connnection to 'XYZ' failed." when I try to Domd.OpenQuery a query that's depending on a linked table.

I get the same message when I try to open said linked table. How do I find out where it's pointing to?


Open the table in design mode, accept the warning with "Yes", look into the "Properties" window of the table (not the one of the column -- in Access 2007, the table properties window is docked on the right-hand side of the window; in earlier versions there's a button in the tool bar, if I remember correctly). The "Description" field contains the ODBC string for the table.


You can use the connect property. in the immediate window:

?CurrentDb.TableDefs("LinkedTableName").Connect

The property is updatable.


Relink Access tables from code

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜