andyb7901
asked on
IIf Statments in queries
Hey,
Can someone help me with the formatting of a line of my query. I am trying to say;
if column[7] is null then check column [19], if they are both null return FALSE.
if column[7] is not null check its value is greater than 0, if it is not greater than 0, check column [19] value is greater than 0, if it is also not greater than 0 return FALSE, but if either column [7] or [19] return a value greater than 0 return TRUE.
I have tried to do this in a query, and I need to keep it in this format.
dox_fsa: IIf(IsNull([7]),IIf(IsNull [19],False ,IIf([7]>0 ,True,IIF[ 19]>0,True ,False))
Something like that?
Can someone help me with the formatting of a line of my query. I am trying to say;
if column[7] is null then check column [19], if they are both null return FALSE.
if column[7] is not null check its value is greater than 0, if it is not greater than 0, check column [19] value is greater than 0, if it is also not greater than 0 return FALSE, but if either column [7] or [19] return a value greater than 0 return TRUE.
I have tried to do this in a query, and I need to keep it in this format.
dox_fsa: IIf(IsNull([7]),IIf(IsNull
Something like that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
dox_fsa: IIf(IsNull([7]),IIf(IsNull [19],False , IIf([19]>0,True,False)),II f([7]>0,Tr ue,IIf(isN ull([19]), False,IIf( [19]>0,Tru e,False)))
Think I got enough parends on the end.
JimD
Think I got enough parends on the end.
JimD
it works better for me...