G
Guest
I am trying to create an expression in a query using TABLE1Y and TABLE2T that
says, If TABLE2.IPQTY - TABLE1.IPQTY is null, then print TABLE2.IPQTY,
otherwise subtract TABLE1.IPQTY from TABLE2.IPQTY. The data in the fields is
numeric, however fields are blank instead of having a 0 if there is no data.
This is the statement I have in my expression
DIPQTY:
IIf(IsNull([TABLE2T]![IPQTY]-[TABLE1Y]![IPQTY]),[TABLE2T]![IPQTY],[TABLE2T]![IPQTY]-[TABLE1Y]![IPQTY])
I'm getting weird results. Can someone help???
says, If TABLE2.IPQTY - TABLE1.IPQTY is null, then print TABLE2.IPQTY,
otherwise subtract TABLE1.IPQTY from TABLE2.IPQTY. The data in the fields is
numeric, however fields are blank instead of having a 0 if there is no data.
This is the statement I have in my expression
DIPQTY:
IIf(IsNull([TABLE2T]![IPQTY]-[TABLE1Y]![IPQTY]),[TABLE2T]![IPQTY],[TABLE2T]![IPQTY]-[TABLE1Y]![IPQTY])
I'm getting weird results. Can someone help???