A family of Microsoft relational database management systems designed for ease of use.
Neither one of those options works because the control source for the DaysOS text box was set up as =NZ(DaysOS, 0).
The problem is that these expressions reference a computed control , whose ControlSource property is itself an expression. You cannot do that, you must repeat the original expression as the argument of the aggregation operator.
As regards your solution of returning zeros in place of Nulls in the query, are you sure that this gives you the correct average value? I would have thought that the average should only be of the non Null values, which is how the AVG operator works, so should ignore the zeros which have replaced the Nulls. If you use the AVG operator without returning zeros in place of Nulls, but with the reference to the computed control replaced by the original expression, you should find it works correctly.
Mathematically, treating a Null as zero makes little sense. Null is the absence of a value, so could be anything from negative infinity to positive infinity. The nearest we can get to a meaning for it is 'unknown', but it is really semantically ambiguous. This is why aggregation operators exclude Nulls. In reality we often have to decide whether, in a given situation, it should be regarded as zero or not. In an expression involving the addition for instance (not to be confused with summation) of a fixed number of values, it is usually necessary to treat Nulls as zero because Null propagates in any arithmetical operation, i.e. the result will always be Null.