A
Alex Martinez
Hi,
I need some help on my If statement. I have a field call Branch in my form
that is in a combo box. If the user inputs a different branch number I want
to have a dialog error message box showing that the user inputed the wrong
branch number. It seems to work the only problem is after the user re-input
the branch number after receiving the error message I still get the error
message. What gives? Any help will be appreciated. Thank you.
Private Sub Form_BeforeUpdate(Cancel As Integer)
'If Me.[Branch] <> "007" or "008" or "009" or "111" or "222" Then
'Cancel = True
'MsgBox "Incorrect Branch Number"
End Sub
I need some help on my If statement. I have a field call Branch in my form
that is in a combo box. If the user inputs a different branch number I want
to have a dialog error message box showing that the user inputed the wrong
branch number. It seems to work the only problem is after the user re-input
the branch number after receiving the error message I still get the error
message. What gives? Any help will be appreciated. Thank you.
Private Sub Form_BeforeUpdate(Cancel As Integer)
'If Me.[Branch] <> "007" or "008" or "009" or "111" or "222" Then
'Cancel = True
'MsgBox "Incorrect Branch Number"
End Sub