IIf statement with ending result

Joe8915

Registered User.
Local time
Yesterday, 17:05
Joined
Sep 9, 2002
Messages
820
I have a text box with the following statement:

Summary detail: Sum(IIf([dacthc]=0,Null,Fix(100*[dqty]*([dstdhc]*[drate]/[dacthc]-[drate]))/100))

My question is, if it meets the criteria, is it possible to make it default to a "0" in the field.

Thanks for taking the time to look and review
 
Summary detail: Sum(IIf([dacthc]=0,0,Fix(100*[dqty]*([dstdhc]*[drate]/[dacthc]-[drate]))/100))
 

Users who are viewing this thread

Back
Top Bottom