To group data
-
On the Insert menu, click Group.
The Insert Group dialog box appears.
- Select the field you want the data grouped by from the top drop-down list.
- Select the sort direction from the second drop-down list.
- If you want to show a different value in the group header, click the Options tab.
- Select the Customize Group Name Field check box and choose a new group name.
For example, if you grouped by {Customer.CustomerID}, at each change of a group you will see the corresponding customer ID. If you want to display a different value (customer ID as well as customer name), customize the group name field by choosing an alternate data field, or creating a formula.
- Click OK.
If your records within each group are unsorted, you need to sort the records within each group. See Sorting records within groups.