T
TADropik
I'm trying to change the connection of "My_Table" which is a linked table.
Dim tdfTarget as TableDef
Set tdfTarget = CurrentDb.TableDefs("MyTable")
With tdfTarget
.Connect = ";Database=" & "C:\Data\My_Data.mdb"
.RefreshLink
End With
If the existing connection to this Table is a Network location
"Z:\Data\My_Data.mdb" and the Network location does not exist, the .Connect
fails.
Dim tdfTarget as TableDef
Set tdfTarget = CurrentDb.TableDefs("MyTable")
With tdfTarget
.Connect = ";Database=" & "C:\Data\My_Data.mdb"
.RefreshLink
End With
If the existing connection to this Table is a Network location
"Z:\Data\My_Data.mdb" and the Network location does not exist, the .Connect
fails.