|
-
Aug 11th, 2001, 08:48 PM
#1
Thread Starter
Frenzied Member
Access2K password from VB using ADO?
Hi,
I'm connecting to a password protected Access2K database from within my VB app. I'm using ADO and the connect string is as follows:
goDb.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\something.mdb;Password=blablabla"
However, when I run it, and it attempt to connect to the db, I get the following error:
Run-time error '-2147217843 (80040e4d)':
Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
I'm not using the workgroup security and the database is not opened exclusively, or opened at all for that matter..
Any idea what I'm doing wrong?
Thanks,
Dan
-
Nov 11th, 2002, 07:31 PM
#2
Fanatic Member
Im stuck in the same situation. I have even tried a dozen methods of connecting to the database all which have produced the same error as you are receiving
-
Nov 11th, 2002, 09:16 PM
#3
Hyperactive Member
You two might want to try this:
VB Code:
'If MDB has a database password
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\somepath\mydb.mdb;" & _
"Jet OLEDB:Database Password=MyDbPassword", _
"myUsername", "myPassword"
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Nov 11th, 2002, 09:20 PM
#4
Fanatic Member
What is the difference between Database Password and MyPassword?
-
Nov 11th, 2002, 09:24 PM
#5
Fanatic Member
VB Code:
module00conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & FileName & _
";Jet OLEDB:Database Password=admin;", "admin", "admin"
Here is what I have, it still produces the same error message.
-
Nov 11th, 2002, 09:29 PM
#6
Hyperactive Member
let me turno on the other computer...on this I don't have VB
...
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Nov 11th, 2002, 10:06 PM
#7
Hyperactive Member
I was getting the same error...but now...I was able to get in...
like this:
VB Code:
module00conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & FileName & _
";Jet OLEDB:Database Password=admin"
I guess that the other two is when you got the usergroup working, anyway...i couldn't make it work with a system.mdw like file...
this should take care of your issue of accessing a passworded database...
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Nov 11th, 2002, 10:17 PM
#8
Fanatic Member
Thanks, that worked.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|