I am using the following code to password protect a form.
Private Sub Form_Open(Cancel As Integer)
Cancel = (InputBox("PassWord?") <> "Oscar")
End Sub
However, I want to be able to display a message when the password is wrong.
I tried a MsgBox, but that displayed even when the password was correct.
I am still trying to learn VBA on my own, but it is going slow.
Please help. Thanks.