I have the following sub to change the users passwork from the default to their entered one. However, when I run through the procedure I get a pop-up "Enter Parameter Value". I am not sure where it is coming from. It is suppose to get the new password from a textbox. Here is what I have:
Code:
Private Sub cmdChangePassword_Click()
Dim strInsertPassSQL As String
If Me.tbxNewPass1 <> Me.tbxNewPass2 Then
MsgBox ("Paswords do not match. Please try again.")
Me.tbxNewPass1.Value = ""
Me.tbxNewPass2.Value = ""
Me.tbxNewPass1.SetFocus
Else
strInsertPassSQL = "UPDATE Secure SET [Password] =" & Me.tbxNewPass1.Value & " WHERE [EmployeeNo] =" & Me.tbxUserEmpNo.Value & ""
DoCmd.RunSQL strInsertPassSQL
End If
End Sub
Could one of you guys or gals point me in a direction?hanks.