Excluding Zeros in an Average

T

Tammy

I have controlled fields on a report; the Control Source
is set to return the average of scores as stored in the
fields of a table (simple math - no VBA needed!). I've
always been under the impression that Access ignores zeros
when computing an average; however - it's not! Any ideas
why/how to fix?
 
D

Duane Hookom

You would need to use something like:
=Sum([YourField])/Abs(Sum([YourField]<>0 ) )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top