I want to programmatically change all of my table links from their existing links to varius SQL Server Databases, to a local Access Database. What is the best way to do this? I can't seem to change the tabledef.Connect value using this type of logic:
I get the ODBC dialog box to "Select a Data Source". Is this because you cannot change an ODBC linked table to an "access linked table"?
Might it be easier to delete each table, then recreate it using a new link? I'm a bit lost here (obviously), and could use some help.
Thanks!
Code:
With tdfLocal
.Connect = ";Database=" & strDBPath
.RefreshLink
End With
I get the ODBC dialog box to "Select a Data Source". Is this because you cannot change an ODBC linked table to an "access linked table"?
Might it be easier to delete each table, then recreate it using a new link? I'm a bit lost here (obviously), and could use some help.
Thanks!