I have problems with another simply looking thing, but dunno what a monster sleeps inside it.
I need to open a password protected database (MDB file).
The password is "dog".
I'm doing it this way:
Dim db As Database
Set db = OpenDatabase("D:\mydb.mdb", Connect:=";pwd=dog"
The opendatabase statement causes runtime error '3031' - "Not a valid password". But the password IS valid, because when I open the mdb using access and type it in, it works.
I was experimenting a little with the connect string, but no success. Where's the problem?
"I know, Access is the problem. :-("
I need to open a password protected database (MDB file).
The password is "dog".
I'm doing it this way:
Dim db As Database
Set db = OpenDatabase("D:\mydb.mdb", Connect:=";pwd=dog"
The opendatabase statement causes runtime error '3031' - "Not a valid password". But the password IS valid, because when I open the mdb using access and type it in, it works.
I was experimenting a little with the connect string, but no success. Where's the problem?
"I know, Access is the problem. :-("