Sub LinkedTableConnection()
Dim lngTable As Long
Dim db As Database
Set db = CurrentDb
For lngTable = 0 To db.TableDefs.Count - 1
If db.TableDefs(lngTable).Name = "tblYourLinkedTableName" Then
Debug.Print db.TableDefs(lngTable).Connect
End If
Next lngTable
Set db = Nothing
End Sub
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.