J
JoeA2006
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 OLEDBatabase Password") = "thepassword"
dbconn.Open
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 OLEDBatabase Password") = "thepassword"
dbconn.Open