I'm at my wits end here. Can someone tell me why this advances to the next
field rather than stay in the pWord field.
Thanks in Advance.
Steve
Private Sub pWord_AfterUpda te()
If Forms![logon]![pWord] <> Forms![logon]![Secret] Then
DoCmd.Beep
MsgBox " That PASSWORD is not correct"
Cancel = True
Forms![logon]![pWord].SetFocus
Forms![logon]![pWord] = Null
Exit Sub
End If
field rather than stay in the pWord field.
Thanks in Advance.
Steve
Private Sub pWord_AfterUpda te()
If Forms![logon]![pWord] <> Forms![logon]![Secret] Then
DoCmd.Beep
MsgBox " That PASSWORD is not correct"
Cancel = True
Forms![logon]![pWord].SetFocus
Forms![logon]![pWord] = Null
Exit Sub
End If
Comment