R
Radhika
I am trying to build an expression in a query that calculates the average of
three fields. The three fields are called 'OPSE 10 ml Avg', 'OPSE pudding
Avg' and 'OPSE cracker Avg'. I want to caculate the average of all three
feilds. However, if one of the fileds is missing, I want the caculation to be
the average of all the other values that are not null instead of counting the
missing field as '0'.
The following is the experssion I have:
OPSE Alll Avg: (0+Nz([OPSE 10 ml Avg],[OPSE Pudding Avg],[OPSE cracker
Avg)+Nz([OPSE cracker Avg],[OPSE Pudding Avg],[OPSE 10 ml Avg]))/3
This gives me an error msg saying that the wrong number of arguements have
been used. What can I be doing wrong?
Thankyou,
Radhika
three fields. The three fields are called 'OPSE 10 ml Avg', 'OPSE pudding
Avg' and 'OPSE cracker Avg'. I want to caculate the average of all three
feilds. However, if one of the fileds is missing, I want the caculation to be
the average of all the other values that are not null instead of counting the
missing field as '0'.
The following is the experssion I have:
OPSE Alll Avg: (0+Nz([OPSE 10 ml Avg],[OPSE Pudding Avg],[OPSE cracker
Avg)+Nz([OPSE cracker Avg],[OPSE Pudding Avg],[OPSE 10 ml Avg]))/3
This gives me an error msg saying that the wrong number of arguements have
been used. What can I be doing wrong?
Thankyou,
Radhika