Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to identify ODBC linked tables in code? 1

Status
Not open for further replies.

AMadden

Technical User
Mar 22, 2002
16
US
I'm in the process of upgrading a VBA application from Access 95 to 2000. Part of this process is switching from the use of DAO to ADO/ADOX.

I'm having a problem converting the DAO code which checks the Connect property of every table (tabledef) in the database and determines which tables are "ODBC Linked."

Does anyone know how to identify ODBC Linked tables using ADO/ADOX? Any help with this would be appreciated. I may be spending a long weekend....

Thanks
-Art Madden
 
Dim tdf as TableDef
For each Tdf in Currentdb.TableDefs
IF tdf.connect like "ODBC*" Then
'your code goes here
End if
Next tdf

Have DAO reference added
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top