Hi June, you are probably the most helpful on this forum. Here is the code I came up with. I have a Save button that I need to save the entered password, and compare it between the two. But, the button doesnt respond.
Code:
Private Sub btnSave_Click()
If Me.pwFirst = Me.pwSecond Then
DoCmd.RunCommand acCmdSaveRecord
Exit Sub
Else
If Me.pwFirst <> Me.pwSecond Then
MsgBox "New Passwords do not match. Re-enter ." _
& vbCrLf & "and please try again.", vbCritical, _
"Re-enter both Passwords."
Exit Sub
End If
DoCmd.CloseForm "frmChangePasswordtest"
DoCmd.OpenForm "frmMainMenu"
End Sub