I\'ve password protected an mdb file but then I cannot access it on vb.net. I don\'t know the correct code for defining the password. this is my current code, I know its wro
I believe the connection string should look like this:
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;Jet OLEDB:Database Password=MyDbPassword;"
Here is a link to a site which can help with connection string questions ConnectionStrings.Com HTH