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?
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)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.