this might be simple, query writing need help

icemonster

Registered User.
Local time
Yesterday, 23:24
Joined
Jan 30, 2010
Messages
502
how would you go on about writing something like iif([field] = 1 or null,true,false)? thanks. i can't get the part to make it an or
 
How about

IIF(Nz([Field],0)<2,True,False)

Nz() converts Nulls to an alternative value in this case 0

JR
 
JAN's solution isn't exactly what you asked for. If [field] actually equals 0 or a negative number it would resolve to True, your initial posting said only the value 1 should resolve to True. The below code will do that:

IIF(Nz([Field],1)=1,True,False)
 

Users who are viewing this thread

Back
Top Bottom