accessman2
Registered User.
- Local time
- Today, 15:49
- Joined
- Sep 15, 2005
- Messages
- 335
Hi,
Suppose I create db1.mdb and db2.mdb, each one has its own workgroup (I setup user-level security).
db1.mdb with secured1.mdw
db2.mdb with secured2.mdw
I create a Account for username=John, pwd = test on both database
each database with its own workgroups have same username, and same password.
And then, I open the db1.mdb using the shortcut.
I have a function
Function add()
Dim conConnector As ADODB.Connection
Set conConnector = New ADODB.Connection
conConnector.Open "Provider='Microsoft.JET.OLEDB.4.0';Data Source=C:\db2.mdb;User Id=currentUser();Password=???;Jet OLEDB:System database=c:\secured2.mdw"
conConnector.Execute "insert into [table1] (Name,ID) Values (CurrentUser(),1)"
End Function
So, how do I retrieve the password? Because I expect there are many users using this function, I cannot fix the username and password, each user has different permission.
Please let me know, thanks.
Suppose I create db1.mdb and db2.mdb, each one has its own workgroup (I setup user-level security).
db1.mdb with secured1.mdw
db2.mdb with secured2.mdw
I create a Account for username=John, pwd = test on both database
each database with its own workgroups have same username, and same password.
And then, I open the db1.mdb using the shortcut.
I have a function
Function add()
Dim conConnector As ADODB.Connection
Set conConnector = New ADODB.Connection
conConnector.Open "Provider='Microsoft.JET.OLEDB.4.0';Data Source=C:\db2.mdb;User Id=currentUser();Password=???;Jet OLEDB:System database=c:\secured2.mdw"
conConnector.Execute "insert into [table1] (Name,ID) Values (CurrentUser(),1)"
End Function
So, how do I retrieve the password? Because I expect there are many users using this function, I cannot fix the username and password, each user has different permission.
Please let me know, thanks.