Have a question, the code below is for when a user clicks this field they have to enter a password and if it is incorrect it doesn't let them in. This code works on other apps and works good here but it does let them go into the field is there a way to have it auto exit after there access is denied?
Private Sub Adjustment_Enter()
If InputBox("Please enter your password") = "kjh" Then
Else
MsgBox "Incorrect Password"
'Would like to have the exit code here?
End
End If
End Sub
Sincerely,
Charles
Private Sub Adjustment_Enter()
If InputBox("Please enter your password") = "kjh" Then
Else
MsgBox "Incorrect Password"
'Would like to have the exit code here?
End
End If
End Sub
Sincerely,
Charles