Programmatically how can you tell a table is linked?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to tell if a table is linked? Right now this what I have.

dim mytbl as TableDefs
For Each mytbl In dbs.TableDefs
If mytbl.Name = "tblSeq" Then
SDPData = True
End If
Next mytbl

How can I tell that the table tblSeq is a linked table?

Thank you,

Sarah
 
dim mytbl as TableDefs
dim blnIsLinked As Boolean

For Each mytbl In dbs.TableDefs
blnIsLinked = Len(mytbl.Connect) <> 0
Next mytbl
 

Ask a Question

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.

Ask a Question

Back
Top