Identifying Linked Tables

S

Synergy

Hello,

I would like to iterate through the tables in my DB and populate a table
with the names of all linked tables, but cannot find a property to identify
the Lined tables. Is there one?

God Bless,

Mark A. Sam
 
R

Rick Brandt

Synergy said:
Hello,

I would like to iterate through the tables in my DB and populate a table
with the names of all linked tables, but cannot find a property to identify
the Lined tables. Is there one?

If the Connect property of the TableDef is not blank, then it is a linked
table.
 
V

Van T. Dinh

A Query with the following SQL String:

SELECT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Name) Not Like "MSys*" And
(MSysObjects.Name)<>"Engine")
AND ((MSysObjects.Type)=6));

Should give you the names of all linked Tables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top