I've got a database project built, and mostly works fine, regardless of network path or mapped drive... however... we've recently been running into issues where this is becoming an issue.
Because of that, I built the following code to loop through all linked tables, and modify to use the actual network path instead of Mapped drive path. And it looked like it worked. But as soon as I copy the database, and send to those folks again, it doesn't work.
So, can anyone tell me what I'm doing wrong?
Thanks for any suggestions, references, etc.
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
Because of that, I built the following code to loop through all linked tables, and modify to use the actual network path instead of Mapped drive path. And it looked like it worked. But as soon as I copy the database, and send to those folks again, it doesn't work.
So, can anyone tell me what I'm doing wrong?
Code:
Sub GetTableDescription()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Set db = CurrentDb
For Each tdf In db.TableDefs
If tdf.Connect = vbNullString Then
Else
Debug.Print "---------------------------------------------------------"
Debug.Print tdf.Connect
tdf.Connect = Replace(tdf.Connect, "G:", "\\networkname\...networkpath")
Debug.Print tdf.Connect
Debug.Print vbCrLf
End If
Next tdf
If tdf Is Nothing Then Else Set tdf = Nothing
End Sub
Thanks for any suggestions, references, etc.
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57