debsamguru
Member
- Local time
- Today, 05:23
- Joined
- Oct 24, 2010
- Messages
- 82
There isn't a special char in the field, I was just using that to imply that I used the same calculation for both the CostPrice and the SalesPrice.Aggregate functions must reference fields, not controls. The field can be calculated in table or query, but not form/report textbox. If calc is just in textbox then have to repeat in the aggregate calc: =Sum(Nz(expression here,0))
Is CostPrice/SalesPrice a field name? Advise not to use punctuation/special characters in naming convention.
Even using the expression in the aggregate calc doesn't work.
Calculated field TotalCostPrice = [QuantityRequired]*[CostPrice] where QuantityRequired and CostPrice are fields on the OrderItemT
Aggregate calc TotalOrderCostPrice = Sum(Nz([QuantityRequired]*[CostPrice],0))
TotalOrderCostPrice still shows as an error.