I have used this line elsewhere, made a change to how we track the value
I have a query that grabbs address details, orders, values, etc, grouping by the address. When trying to use the above expression, instead of just value Access complains that I cannot have aggregate function in GROUP BY clause, but when I select "Expression" as its sort criteria, Access tells me that I tried to execute a query that doesn't include the above expression in an aggregate function. What am I supposed to choose as its sort criteria?
I can't win for losing!
Code:
IIf([q].[value]=0,Sum([h].[built]*[h].[value]),[q].[value])
I have a query that grabbs address details, orders, values, etc, grouping by the address. When trying to use the above expression, instead of just value Access complains that I cannot have aggregate function in GROUP BY clause, but when I select "Expression" as its sort criteria, Access tells me that I tried to execute a query that doesn't include the above expression in an aggregate function. What am I supposed to choose as its sort criteria?
I can't win for losing!