Question : TableDef Properties

which property tells me if a table is linked or not?

i.e. TableDefs(xx).Properties(???)

thanks

Answer : TableDef Properties

For this to work you have to have a reference set to DAO (Ask me and I will tell you how to do this)
This code will pop up a message box listing all the linked tables by name


Dim db As Database
Dim tdf As TableDef
Set db = CurrentDb
For Each tdf In db.TableDefs
        If Len(tdf.Connect) > 0 Then
            MsgBox db.TableDefs(tdf.Name).Name
        End If
Next tdf
Random Solutions  
 
programming4us programming4us