Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find linked tables 1

Status
Not open for further replies.

ndalli

Programmer
Nov 6, 1999
76
MT
Hi,

I am currently trying to amalgamate a number (12) of databases into one large database. Every database contains a number of tables, some of which are linked tables.

Is there a way to find in which database, a linked table is?

Thanks in advance,
 
Paste this into the On Click event of a button:

Dim dbs As Database, tdf As TableDef
Set dbs = CurrentDb
For Each tdf In dbs.TableDefs
If Len(tdf.Connect) > 0 Then
Debug.Print tdf.Name & ", is connected to: " & _
tdf.SourceTableName & ", in: " & tdf.Connect
End If
Next
Set dbs = Nothing

This will display the link info you require to the Immediate Window (Ctrl+G)

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top