G
Guest
I have designed a Form with Tabs to move from one section of the form to
another. I have the following OnChange Event procedure that will not allow
changes to be made without a Password:
Private Sub TabCtl0_Change()
If Me!TabCtl0 = 7 Then
If Not InputBox("Please Enter Password") = "roger" Then
Me!TabCtl0 = 0
MsgBox "Sorry, Incorrect Password"
End If
The problem is that as soon as the user clicks this Tab, the message box
appears asking for the Password; however, the User can still view the
confidential information on this screen behind the Message Box.
Is there a way to prevent this?
Thanks for any help
another. I have the following OnChange Event procedure that will not allow
changes to be made without a Password:
Private Sub TabCtl0_Change()
If Me!TabCtl0 = 7 Then
If Not InputBox("Please Enter Password") = "roger" Then
Me!TabCtl0 = 0
MsgBox "Sorry, Incorrect Password"
End If
The problem is that as soon as the user clicks this Tab, the message box
appears asking for the Password; however, the User can still view the
confidential information on this screen behind the Message Box.
Is there a way to prevent this?
Thanks for any help