Connect tables from a password protected mdb

G

Guest

I am trying to link tables programatically from a password protected database.
Assuming the password is "fred" the connect fails with an "Invalid Password
Message" when I use any of the following:

tdf.Connect = ";DATABASE=" & strFileName
tdf.Connect = ";DATABASE=" & strFileName & ";Password=fred"
tdf.Connect = ";DATABASE=" & strFileName & ";Password='fred'"
tdf.Connect = ";DATABASE=" & strFileName & "Jet OLEDB:Database Password=fred"
tdf.Connect = ";DATABASE=" & strFileName & "Jet OLEDB:Database
Password='fred'"

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top