Count the number of records in each group or report
- Open the report in Design view.
- Do one or both of the following:
Count the number of records in a group
- Click the Text Box tool on the toolbox and click the detail section. The control will not be visible to the user, so its placement within the section is not critical.
- Select the text box and click Properties on the toolbar.
- Set the following properties.
Property Setting Name A text string, such as RecordCount ControlSource =1 RunningSum Over Group Visible No - Add a text box to the group footer.
- Select the text box, and then click Properties on the toolbar.
- Set the ControlSource property to the name of the control in the detail section that's tracking the running total; for example, =[RecordCount]
Count the number of records in a report
- Click the Text Box tool on the toolbox and click the report header or footer section where you want to place the text box.
- Select the text box and click Properties on the toolbar.
- Set the ControlSource property of the text box to =Count(*).
This expression uses the Count function to count all the records in the report even if some fields in some records are Null.