Hi,
I have a report that displays all records in a table.
the report is populated by an underlying query.
I have textboxes that sum ALL the totals, but I need to know how to sum totals on condition of a field in a table.
Is this best done as an expression in a textbox?:
=IIf([cattype_id]=2,Sum([amount]))
or would you suggest an alternative?
I have a report that displays all records in a table.
the report is populated by an underlying query.
I have textboxes that sum ALL the totals, but I need to know how to sum totals on condition of a field in a table.
Is this best done as an expression in a textbox?:
=IIf([cattype_id]=2,Sum([amount]))
or would you suggest an alternative?