A
Anthony Feole
Hello,
I'm currently running an multiple IIF statement with > and
< conditions within a query and it works correctly.
Basically, the statement looks at 2 other field values and
calculates accordingly.
Unfortunately, when the IIF statement hits a value that
that is equal, a zero should populated as the value. When
this situation arrises I get the following value or
something like it:
7.105427357601E-15
I've tried adding >= or <= to the statement but the same
value was returned. Listed below is the entire statement:
9 - 12 Months $: IIf([WIP_SUPPLY_TYPE]="Bulk",0,IIf([OH $]
Demand $]*(DLookUp("[UBL]","tblBAMOH","[BAMOHID]=4")-
DLookUp("[LBL]","tblBAMOH","[BAMOHID]=4")),IIf([OH $]<=
([Average Monthly Demand ]*DLookUp
("[LBL]","tblBAMOH","[BAMOHID]=4")),"HELP",[OH $]-
([Average Monthly Demand $]*DLookUp
("[LBL]","tblBAMOH","[BAMOHID]=4")))))
Regards,
Tony
I'm currently running an multiple IIF statement with > and
< conditions within a query and it works correctly.
Basically, the statement looks at 2 other field values and
calculates accordingly.
Unfortunately, when the IIF statement hits a value that
that is equal, a zero should populated as the value. When
this situation arrises I get the following value or
something like it:
7.105427357601E-15
I've tried adding >= or <= to the statement but the same
value was returned. Listed below is the entire statement:
9 - 12 Months $: IIf([WIP_SUPPLY_TYPE]="Bulk",0,IIf([OH $]
("[UBL]","tblBAMOH","[BAMOHID]=4")),[Average Monthly=([Average Monthly Demand $]*DLookUp
Demand $]*(DLookUp("[UBL]","tblBAMOH","[BAMOHID]=4")-
DLookUp("[LBL]","tblBAMOH","[BAMOHID]=4")),IIf([OH $]<=
([Average Monthly Demand ]*DLookUp
("[LBL]","tblBAMOH","[BAMOHID]=4")),"HELP",[OH $]-
([Average Monthly Demand $]*DLookUp
("[LBL]","tblBAMOH","[BAMOHID]=4")))))
Regards,
Tony