Restoring links

  • Thread starter Thread starter ubu
  • Start date Start date
"ubu" said:
What's the best approach for checking links on the
frontend when opening a database?

You need to loop through the TableDefs collection, checking the .Connect
property of each. If this string exists, then the table is linked, and you can
extract the target datasource, and check for its existence. There is some
sample code on the Access Web that deals with reconnecting to datasources:

http://www.mvps.org/access/tables/tbl0009.htm
http://www.mvps.org/access/tables/tbl0010.htm
http://www.mvps.org/access/tables/tbl0012.htm
 
Back
Top