Connect to a password protected MS Access DB

P

Peter

After I set the password for MS Access DB , i modify the connection string
from

connStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=System.Environment.SystemDirectory\" & "MyDBName.MDB"

to

connStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=System.Environment.SystemDirectory\" & "MyDBName.MDB" & ";User
Id=admin;Password= " & "MyPassWord" & ";"


Afterward I open the Access DB, it return error
"cannot start your application. the workgroup information file is missing or
opened exclusively by another user."

Any idea? thanks.

Peter
 

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