What does the "0" after The [MyField] mean? The problem is that we are
trying work on some QC scores for our employees. We need for the Null
not to
be counted at all.
Example: If we have an employee that worked 5 days out of seven, and
they
had 5 perfect scores, putting in the 0 causes the total to be divided by
by 7
instead of the 5 for the actual days worked, which changes their perfect
score to 71.428571.
Does this make sense?
Arvin Meyer said:
You need to change the Null to Zero. Use the NZ() function:
Avg(NZ([MyField],0))
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
message Is there a secret to averaging fields that contain null values? We
are
working on a query that deals with daily information where there is
not
information available for each day for each individual.