7

I'm looking after a database while its author is on 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?

3 Answers 3

17

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

?CurrentDb.TableDefs("LinkedTableName").Connect

The property is updatable.

Sign up to request clarification or add additional context in comments.

Comments

15

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.

Comments

1

Relink Access tables from code

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.