Why are you using IIf that will return division by 0? Division by 0 is not possible.
That expression does not average anything. The image shows C3 in the expression but your typed version does not.
If you want to exclude zeros from average, since nulls are ignored, try:
=Avg(IIf([C2]=0, Null, [C2])
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
There are too many parenthesis and they are in the wrong places
Try
I hope this isn't the real expression... it doesn't make any sense.Code:= IIf([C2] = 0, 0, [C2] / IIf([C2] = 0, 0, 1))