2 requirements for if statement?

WinDancer

Registered User.
Local time
Today, 09:31
Joined
Oct 29, 2004
Messages
290
The syntax I asked about here in this forum, for a filter, won't work with my if statement-

What I am trying to do is run code if the case status is any status except closed OR with no date in the date completed field.

This code won't run correctly:

If "[CaseStatus]<>'Closed' or NOT IsNull([DateCompleted])" Then

Help, please?

Thanks,
Dave
 
Get rid of the double quotes

If "[CaseStatus]<>'Closed' or NOT IsNull([DateCompleted])" Then

should be

If [CaseStatus]<>'Closed' or NOT IsNull([DateCompleted]) Then

Or


If [CaseStatus]<>"Closed" or NOT IsNull([DateCompleted]) Then
 
Thanks again, Bob.
7 paydays left :)
Dave
 

Users who are viewing this thread

Back
Top Bottom