Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Count the number of records in a Group

Status
Not open for further replies.

davemckie

Programmer
Feb 18, 2004
4
0
0
US
Hi all,

I need a formula that will count the number of records per group. I need it to track how many records per page. Can anyone reply with a sample?

thanks in advance
dave
 
The easiest way to do this is to create a Running Total Field that counts occurences of a field in the group and then resets on Change of Group.


~Kurt
 
You could use a running total that resets on group change.

In the Field Explorer, click on Running Total Fields and select New from the toolbar.

1. Name your running total field.
2. Choose which detail field this summarizes.
3. Set type of summary to count.
4. Make sure evaluate for each record is set.
5. Choose reset on change of group and select which group.

Click ok, and place running total field in the group footer.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top