OK one more
Private Sub Command1_Click()
Dim dbs As Database, tdf As TableDef, strName As String
Set dbs = CurrentDb
For Each tdf In dbs.TableDefs
'If the table has a connect string, it's a linked table.
If Len(tdf.Connect) > 0 Then
If IsNull(InStr(1, tdf.Connect, "TblSet1")) Then
strName =...