hello again
I've been having another try at my LogIn Form.
This is not really a password security issue just to allow users to enter/edit their own details.
tblLocation has LocID, LocName, passcode (autonumber,text,text)
I have a combo box and a text box on my LogIn Form and a Command button. I have code on the Combo box and text box On Exit to prompt no details but trying to get the main Form open with just the Login User has seen me scouring forums all weekend. below is the OnClick for the button
Private Sub cmdLocLogin_Click()
Dim strWhere
strWhere = strWhere & "[LocName]='" & Me.cboUserList
If txtPassCode = "LocID.Column(2)" Then
DoCmd.OpenForm "Incident Form" ' ac Normal
Else
MsgBox "Please enter a correct password"
End If
End Sub
I know something is wrong (cause it don't work) (gets to error msg) but how many hours can one old novice spend on something so simple