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

Opening a secured Access DB 2

Status
Not open for further replies.

colobill

Programmer
Dec 16, 2003
22
US
I have a VB6 app that is using Microsoft Access 2000. I opened the database in exclusive mode and set a password. In the VB app I am trying to open the database. I am using the following syntax:

Dim ADOConn As New ADODB.Connection
ADOConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & App.Path & "\ABC.mdb", , "password".

When I run the VB app I get the following error message:

"Cannot start your application. The workgroup info file is missing or open exclusively by another user".

What am I missing? Any help would be appreciated.
 
I think this is what you need

Code:
ADOConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" _
           & "Data Source=" & App.Path & "\ABC.mdb;" _
           & "Jet OLEDB:Database Password = 'password';"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top