
Password protect an Access MDB
Try
msConnectionString = "Provider=" & DB_PROVIDER & ";" & _
"Data Source=" & msDataBaseName & ";" & _
"Jet OLEDB:Database Password=" & msPassword & ";"
where for you PROVIDER ="Microsoft.Jet.OLEDB.4.0"
msDataBaseName ="c:\Test.mdb"
msPassword = "pwd"
you don't need the single quotes around the pwd
mike
Quote:
>-----Original Message-----
>Here are the connect strings I have tried:
>1.
>mdb.ConnectionString = "Microsoft.Jet.OLEDB.4.0;Data
>Source=c:\Test.Mdb;Password='pwd'"
>Error: Could not find installable ISAM
>2.
>mdb.ConnectionString = "Microsoft.Jet.OLEDB.4.0;Data
>Source=c:\Test.Mdb;pwd='pwd'"
>Error: Could not find installable ISAM
>3.
>mdb.ConnectionString = "Microsoft.Jet.OLEDB.4.0;Data
>Source=c:\Test.Mdb;Jet OLEDB:Database Password='pwd'"
>Error: Could not find installable ISAM
>Help,
>ThomasLL
>.