Hello all, this is my first question. Thanks in advance for any help you can provide.
I have a statement in a query that should read like this:
If Warn8=Yes, then (Full*AWP)+(9Percent/100)*AWP))+((AWP/Packagesize)*Exact))
If Warn8=No, then (Full*AWP)+(9Percent/100)*AWP))+((AWP/Packagesize)*Exact))*0.85
The only difference between the two is the multiplication of the 0.85.
I have it written like this:
ERV: IIf([WARN8]=Yes,(([FULL]*[AWP])+(([PERCENT]/100)*[AWP])+(([AWP]/[PACKAGESIZE])*[EXACT])),(([FULL]*[AWP])+(([PERCENT]/100)*[AWP])+((([AWP]/[PACKAGESIZE])*[EXACT])*0.85)))
When I run the query, the ELSE section does not multiply by 0.85. It just looks at it like Warn8 = yes.
Help??
Laura
I have a statement in a query that should read like this:
If Warn8=Yes, then (Full*AWP)+(9Percent/100)*AWP))+((AWP/Packagesize)*Exact))
If Warn8=No, then (Full*AWP)+(9Percent/100)*AWP))+((AWP/Packagesize)*Exact))*0.85
The only difference between the two is the multiplication of the 0.85.
I have it written like this:
ERV: IIf([WARN8]=Yes,(([FULL]*[AWP])+(([PERCENT]/100)*[AWP])+(([AWP]/[PACKAGESIZE])*[EXACT])),(([FULL]*[AWP])+(([PERCENT]/100)*[AWP])+((([AWP]/[PACKAGESIZE])*[EXACT])*0.85)))
When I run the query, the ELSE section does not multiply by 0.85. It just looks at it like Warn8 = yes.
Help??
Laura