I am trying to run a query to calculate values. I can add as many product values:
Expr1:[field1]*[field2]
into the query grid as I want and get the query to run.
And I can create a single query for a sum
Expr1: sum([field1]+[field2])
But if I try and create a query with both product and sum calculations I get an "aggregate function" error:
Error Message: "You tried to execute a query that does not include the specified expression 'fieldX' as part of an aggregate function."
If I remove 'fieldx' and only include the calculations in the query, it gives the "aggregate function" error for the first field in the first product calculation and the error:
Error Message: "You tried to execute a query that does not include the specified expression 'field1' as part of an aggregate function."
Could someone explain what could be wrong? Can I create a query with both product and sum calculations?
Thanks.
Robert
Expr1:[field1]*[field2]
into the query grid as I want and get the query to run.
And I can create a single query for a sum
Expr1: sum([field1]+[field2])
But if I try and create a query with both product and sum calculations I get an "aggregate function" error:
Error Message: "You tried to execute a query that does not include the specified expression 'fieldX' as part of an aggregate function."
If I remove 'fieldx' and only include the calculations in the query, it gives the "aggregate function" error for the first field in the first product calculation and the error:
Error Message: "You tried to execute a query that does not include the specified expression 'field1' as part of an aggregate function."
Could someone explain what could be wrong? Can I create a query with both product and sum calculations?
Thanks.
Robert