I icemonster Registered User. Local time Yesterday, 23:24 Joined Jan 30, 2010 Messages 502 Sep 21, 2011 #1 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 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
J JANR Registered User. Local time Today, 06:24 Joined Jan 21, 2009 Messages 1,623 Sep 21, 2011 #2 How about IIF(Nz([Field],0)<2,True,False) Nz() converts Nulls to an alternative value in this case 0 JR
How about IIF(Nz([Field],0)<2,True,False) Nz() converts Nulls to an alternative value in this case 0 JR
P plog Banishment Pending Local time Yesterday, 23:24 Joined May 11, 2011 Messages 12,039 Sep 21, 2011 #3 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)
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)