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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access A locked Database From VB 1

Status
Not open for further replies.

schembri

Programmer
Aug 29, 2003
8
MT
I've Got An Ms Access database that i wish to lock but when i lock it my vb programm does not open it.

the programm displays an error saying in valid password.

can any one tell me how can i supply a password to the database through vb coding
 
How are you opening it in VB?
ADO Adodc Data Control?
DAO Data1 Data Control?
ADO Connection Object?
DAO Database Object?
 
i'm using DAO Database Object to connect to the database.
 
Set MyDB = DBEngine(0).OpenDatabase(App.Path & "\" & App.EXEName & ".MDB", False, False, ";pwd=abc123")

You may instead need to use something like
";User=Admin;pwd=abc123"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top