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

Quick & Easy Access/VB question

Status
Not open for further replies.

elziko

Programmer
Nov 7, 2000
486
0
0
GB
In access I went to Tools|Security|Set Database Password. I gave it a pass word.

Fine.

But in VB(ADO) what username to I give to connect to the database? "Admin" does not seem to work!

Thanks

elziko
 
Then it just complains that the username/password is wrong but I'm sure the password is correct. I'll try again!
 
Oh just tried it again and I must have miss-typed! But now I get a new error:

Can't start your application. The workgroup information file is missing or opened exclusivly by another user.

Its not the latter so what would one do about the former?

Thamks

elziko
 
Try opening up the database in exclusive mode

Xplain
 
The only way you can insert a password into access is to open the db file exclusively.

This blocks off any other interaction until you close the file.

So, make sure you close access before you try run from VB. If you want to open both, make sure Access isn't opened exclusively
 
In ADO Property Sheet go to
Conection Tab
UserName:Admin,
Password: (blank).
Click Tab "ALL" and Edit "Jet OLEDB:DATABASE PASSWORD". Put your password here. That's all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top