Password protected BE database


G

Guest

I used the following in the form load of my main form. It works fine
accessing the
Backend table I need. However when I try to go to another form and select on
a combo box or access any data, I get a message "not a valid password". All
the other table are linked except for the one I need in the main form . Is
there a way to globally send the password to the Back end file from each form
in the app. Can I use links if the backend is protected?


Private Sub Form_Load()
Dim dbconn As New ADODB.Connection
Dim rst As ADODB.Recordset
Dim cmdCommand As ADODB.Command

dbconn.Provider = "Microsoft.Jet.OLEDB.4.0"
dbconn.Properties("Data Source") = CurrentProject.Path & "\Store
Inventory BE.mdb"
dbconn.Properties("Jet OLEDB:Database Password") = "thepassword"
dbconn.Open
 
Ad

Advertisements

G

Guest

You can just create a link to the table in the password protected mdb.
Delete the link you have now and recreate it. When you create it you'll be
prompted for the database password- provide it and it will get stored with
the link.
 

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