jailerg013
Technical User
Could anyone help me? I wrote the following vb to require a passcode to validate a yes/no check box.
it works the way I need until you click the cancel button on the msgbox.What can I do to remove the cancel button or not have the error.
Code:
Private Sub Check41_BeforeUpdate(Cancel As Integer)
Dim strInput As String, strMsg As String
strMsg = "Enter Authorization Code"
strInput = InputBox(Prompt:=strMsg, Title:="Code Verification", XPos:=2000, YPos:=2000)
If strInput = 625 Then
Forms![Master list add]!Check41 = 1
Else
MsgBox "Incorrect Code"
Forms![Master list add]!Check41 = 0
End If
End Sub