Code help with IsNot( ) operator
- From: Sunflower <luvsunflowers@xxxxxxxxx>
- Date: Fri, 19 Jun 2009 16:34:51 -0700 (PDT)
I have an event procedure on the exit of my sub form
CODE:
____________________
Private Sub LABORDETAIL_Exit(Cancel As Integer)
If Me.NULLSUM = 0 And Me.Status = "OPEN" Then
MsgBox "HEY!!!! YOU NEED TO CHANGE THE STATUS TO - COMPLETED!!"
End If
Me.Status.SetFocus
End Sub
_____________________
Works great when the status is "OPEN"
When make the following change to the second line of code...
If Me.NULLSUM = 0 And Me.Status = "OPEN" Or "Out On Proof" Or "At
Printer/Production" Or "On Hold" Or "Waiting on Someone Else" Then
I breaks!!!
I have also tried...
If Me.NULLSUM = 0 And Me.Status = IsNot("Completed") Then
What am I missing?
.
- Follow-Ups:
- Re: Code help with IsNot( ) operator
- From: tina
- Re: Code help with IsNot( ) operator
- From: Bob Quintal
- Re: Code help with IsNot( ) operator
- Prev by Date: Re: Select Two Values from One Combo
- Next by Date: A String ?
- Previous by thread: Combo Box not retaining its value from table
- Next by thread: Re: Code help with IsNot( ) operator
- Index(es):
Relevant Pages
|