property Aggregates.Item (Key as Variant) as Aggregate
Returns a specific Aggregate function giving its key.

TypeDescription
Key as Variant A String expression that specifies the key of the Aggregate object to be retrieved
Aggregate An Aggregate object to be accessed.
The Item property accesses an Aggregate object giving its key. The Count property counts the number of objects in the Aggregates collection. You can use the for each statement to enumerate all Aggregate objects in the Aggregates collection. For instance, the Aggregates.Item("sum").FormatResult = "currency(value)", makes a sum column to display its content as a currency, by default.