Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to bypass a password (Access --> Excel) 1

Status
Not open for further replies.

Voga

Technical User
Apr 30, 2003
28
0
0
US
Hi all.
I created Access database on the network protected with a password. It is in my shared folder. My users log on this database through Excel front end. How and where in the string/path below (dbName) in the code of Excel GUI I can specify the password, so my users could bypass it while loging on and still not having a direct access from my shared folder to that database?

Dim MyDb As Database
Dim dbName As String

'here's a string/path
dbName = "\\MainComp\SharedDocs\UsersDb.mdb" '????????

'Thank you




 


Set MyDb = DBEngine.OpenDatabase(dbName , False, False, ";pwd=123456789")
 
Thank you CCLINT
This is what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top