if your database of linked table is password protected you need the pssw - password:
Sub intTbl(vLinkedTableName, vDatabasePath, pssw)
On Error Resume Next
Dim db As Database
Dim tdf As TableDef
Set db = CurrentDb
Set tdf = db.TableDefs(vLinkedTableName)
tdf.Connect = ";database=" & vDatabasePath & ";pwd=" & pssw
tdf.RefreshLink
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.