Calculate an aggregate value
When the control you want to use to calculate the aggregate value is
already on the page
The results you see depend on the type of page and the group level to which the selected control belongs.
If the bound control belongs to | Then |
---|---|
An ungrouped page, or the outermost group level on a grouped page | Microsoft Access creates a new group level, and adds a bound span control to the footer section of the new group level. |
An inner group level on a grouped page | Access adds a bound span control to the footer section of the parent group level. If the footer section is not shown, the aggregate control is placed in the header section of the parent group level. |
Note The list of aggregate functions that you see in the AutoSum list depends on the type of data you want to summarize. For numeric values, you can choose from Sum, Average, Min, Max, Count, StDev, and Any. For text, date, and time values, you can choose from Min, Max, Count, and Any.
When the control you want to use to calculate the aggregate value is not
on the page
This procedure does not apply to ungrouped pages. The page will not show the detail values of the field that is being used to calculate the aggregate values. If you want to show both individual and aggregate values, add the bound control to the page, and follow the previous procedure.
The Layout Wizard dialog box appears.
In the wizard dialog box, select the layout you want, and click OK.
Microsoft Access creates a bound span control in the target section. The control will use the Sum function for numeric values and the Count function for all other data types.
Calculate subtotals and grand totals
Calculate a total based on an aggregate value
Microsoft Access creates a bound span control in the footer section of the next higher group level. If the aggregate control belonged to the highest group level, a new group level will be created. The new control will use the same aggregate function as the aggregate control on which it is based.
Notes