G
Guest
Ok,
I have these five fileds in my detail section:
[mth1a] [mth2a] [Mth3a] [Mth4a] [Mth5a]
The fileds represent monthly utilization percentage. What I'm trying to do
is an averaging feild of to the right to average those five months as well as
an average in the group footer to average all the mth1a records in the group.
The control source for [mth1a] is as follows:
=IIf(IsNull([Mth1])=True,0,[Mth1])
The other feilds are all similar
These reason I did this was becasue I couldn't get an Avg function to work
if one of detail fields came up Null. However, I've now realized that when
it comes up zero and is included in the average, that's wrong as well. I
want a null value to be ignored in both Average calcs.
Thanks i advance.
I have these five fileds in my detail section:
[mth1a] [mth2a] [Mth3a] [Mth4a] [Mth5a]
The fileds represent monthly utilization percentage. What I'm trying to do
is an averaging feild of to the right to average those five months as well as
an average in the group footer to average all the mth1a records in the group.
The control source for [mth1a] is as follows:
=IIf(IsNull([Mth1])=True,0,[Mth1])
The other feilds are all similar
These reason I did this was becasue I couldn't get an Avg function to work
if one of detail fields came up Null. However, I've now realized that when
it comes up zero and is included in the average, that's wrong as well. I
want a null value to be ignored in both Average calcs.
Thanks i advance.