Hello,
I have a query in Access 2003 which is as follows:
Actual %: Avg(Format([Total]/[Possible]*100,"Fixed"))
Basically this is causing an overflow error when the field [Possible] = 0.
Now I understand why it's doing this as obviously it's trying to divide by Zero - however, I need this calculation as it's entirely possible that the [Possible] field would have a value of zero and this is correct.
I thought of doing something like
Actual %: IIf([Possible]=0,0,Avg(Format([Total]/[Possible]*100,"Fixed")))
But this gives me an error saying:
You tried to execute a query that does not include the specified expression ..... as part of an aggregate function
How can I get round this please?
Thanks in advance
I have a query in Access 2003 which is as follows:
Actual %: Avg(Format([Total]/[Possible]*100,"Fixed"))
Basically this is causing an overflow error when the field [Possible] = 0.
Now I understand why it's doing this as obviously it's trying to divide by Zero - however, I need this calculation as it's entirely possible that the [Possible] field would have a value of zero and this is correct.
I thought of doing something like
Actual %: IIf([Possible]=0,0,Avg(Format([Total]/[Possible]*100,"Fixed")))
But this gives me an error saying:
You tried to execute a query that does not include the specified expression ..... as part of an aggregate function
How can I get round this please?
Thanks in advance