Microsoft 365 and Office | Access | For home | Windows
A family of Microsoft relational database management systems designed for ease of use.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Report displayed
Sub 1
item1 20.00
item 2 25.00
Total Sub1 = 45.00
Sub 2
Item 3 10.00
Item 4 15.00
Total Sub 2 25.00
Sub 3
Item 5 10.00
Item 6 10.00
Total Sub 3 20.00
Grand Total 90.00
Total without Sub 3 70.00 How to calculate this item?
A family of Microsoft relational database management systems designed for ease of use.
What value/field in your record source determines which values aren’t included in you final total? Can you provide some field names? Assuming field names Sub and Amt, you could try:
=Sum([Amt] * (([Sub]=3) + 1))
this should work since ([Sub]=3) is -1 when true and 0 when false. Using +1 changes -1 to 0 and 0 to 1.