JenniferW
Jun 5th, 2000, 11:01 PM
Hi,
I've been struggling with this problem for awhile and was wondering if some of you VB/database gurus out there could help me out with it.
I am trying to connect my ADO control to an Access 97 db that has a password. The goal is to be able to connect to this Access db with my application on machines that don't necessarily have Access installed.
I'm trying to use the connection string property of the ADO control and Microsoft Jet 3.51 OLE DB Provider. When the db doesn't have a password I have no trouble connecting to it with the following code:
adoTestDB.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51; " & "Persist Security Info=False;" & "Data Source=" & App.Path & "\Test.mdb"
However, when the db has a password, I start running into problems. When I enter the following information in the Data Link Properties window:
I. Provider:
Microsoft Jet 3.51 OLE DB Provider
II. Connection:
1. I select the db "test.mdb"
2. I enter the username ("Admin") and the password
When I Test the connection I get the error:
"Test connection failed because of an error initializing provider. Can't start your application. The workgroup info file is missing or opened exclusively by another user."
The thing is I have the system.mdw file on my system in C:\Windows\System (just where Access created it) and I don't have the db opened (I don't even have Access opened).
Do you have any idea where I could be going wrong on this?
As an extra tidbit, I have been able to successfully connect to the db with a password using the OLE Provider for ODBC Drivers, but when I go to install my application on the NT machine without Access 97, I get an error when it tries to open the db.
What do you think?
Thank you in advance,
Jen
I've been struggling with this problem for awhile and was wondering if some of you VB/database gurus out there could help me out with it.
I am trying to connect my ADO control to an Access 97 db that has a password. The goal is to be able to connect to this Access db with my application on machines that don't necessarily have Access installed.
I'm trying to use the connection string property of the ADO control and Microsoft Jet 3.51 OLE DB Provider. When the db doesn't have a password I have no trouble connecting to it with the following code:
adoTestDB.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51; " & "Persist Security Info=False;" & "Data Source=" & App.Path & "\Test.mdb"
However, when the db has a password, I start running into problems. When I enter the following information in the Data Link Properties window:
I. Provider:
Microsoft Jet 3.51 OLE DB Provider
II. Connection:
1. I select the db "test.mdb"
2. I enter the username ("Admin") and the password
When I Test the connection I get the error:
"Test connection failed because of an error initializing provider. Can't start your application. The workgroup info file is missing or opened exclusively by another user."
The thing is I have the system.mdw file on my system in C:\Windows\System (just where Access created it) and I don't have the db opened (I don't even have Access opened).
Do you have any idea where I could be going wrong on this?
As an extra tidbit, I have been able to successfully connect to the db with a password using the OLE Provider for ODBC Drivers, but when I go to install my application on the NT machine without Access 97, I get an error when it tries to open the db.
What do you think?
Thank you in advance,
Jen