Connect tables from a password protected mdb

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
Back
Top