Hello, in my DB i have to lets user update link to my backend. In my code i did put something like this :
The litle problem here, is the user doesn t have permission to change data in my DB, he can only see. With this permissikon set, it wont lets him refresh path to backend..
Is there a way i can hardcode a "virtual" admin login in my VBA to do the re-link so i dont need to give to user more permission?
Code:
Set CurDB = CurrentDb
'Cycle through the database tables refreshing their links
For Each tdfLinked In CurDB.TableDefs
If Len(tdfLinked.Connect) > 0 Then
tdfLinked.Connect = ";DATABASE=" & strPath1
tdfLinked.RefreshLink
End If
Next tdfLinked
The litle problem here, is the user doesn t have permission to change data in my DB, he can only see. With this permissikon set, it wont lets him refresh path to backend..
Is there a way i can hardcode a "virtual" admin login in my VBA to do the re-link so i dont need to give to user more permission?