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

I Need Help Connecting to My MDB in VB

Status
Not open for further replies.

dotnetprogrammer

Programmer
Aug 17, 2000
77
US
I need to connect to a password protected MS Access database, using ADO. This is the open connection string I am using (nothing unusual):
myConnection.Open “c:\database.mdb”, "admin", "myadminpassword"
When I try to open the Access MDB file, VB generates error message as follows:
"Run time error ‘-2147467259 (80004005)’:
Can’t start your application. The workgroup information file is missing or opened exclusively by another user."

The database is on the local drive and hasn’t been not opened by anyone. If I remove the password from the databases it works just fine. But the problem is I must have the password protection. How can I connect to this database without using DSN or WRKGADM.EXE?
Your help will be greatly appreciated!
-fred
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top