sherlocked
Registered User.
- Local time
- Today, 02:57
- Joined
- Sep 22, 2014
- Messages
- 125
Here's my challenge!
I have the following code behind the On_Load event of my subform:
Private Sub Form_Load()
If Me.Status = "74" Or "33" Or "8" Or "7" Then
MsgBox "This Case Has Been Closed!", vbOKOnly, "Case Closed Alert"
End If
End Sub
The problem is, my message box is appearing every time the form loads, not only when the field contains the value I've specified.
Any thoughts as to what may be causing this problem?
I have the following code behind the On_Load event of my subform:
Private Sub Form_Load()
If Me.Status = "74" Or "33" Or "8" Or "7" Then
MsgBox "This Case Has Been Closed!", vbOKOnly, "Case Closed Alert"
End If
End Sub
The problem is, my message box is appearing every time the form loads, not only when the field contains the value I've specified.
Any thoughts as to what may be causing this problem?