rjmccafferty
IS-IT--Management
In an Access report you can count records by group. The field that I use to keep the running count per record works fine and resets itself when each new group starts. In my specific application I actually have a group within a group and count the records in the second tier group, which works fine. For the detail field for the running count, in properties, I fill in the Name field, set controlSource to =1, RunningSum to OverGroup and visible to No (although for testing I leave it visible).
In the group footer, I put another field with recordsource as =RecordCount (which is the name of the above field that keeps the running count). Instead of giving me the total for each individual group, it gives an increasing number that is the total for all the groups to that point. So, if each of the first 4 groups had 5 records each (for simplicity of example), within the groups we would see the number in each one increase from 1 to 5, record by record in the detail section, starting over at one in each new group. In the group footer, however, after the first group we would see 5. After the second group it would be 10, after the third group it would be 15, etc.
The methods I used, as described above, are exactly what the Access 2000 help menu says to do. What do I need to do differently to get the group totals to be accurate?
In the group footer, I put another field with recordsource as =RecordCount (which is the name of the above field that keeps the running count). Instead of giving me the total for each individual group, it gives an increasing number that is the total for all the groups to that point. So, if each of the first 4 groups had 5 records each (for simplicity of example), within the groups we would see the number in each one increase from 1 to 5, record by record in the detail section, starting over at one in each new group. In the group footer, however, after the first group we would see 5. After the second group it would be 10, after the third group it would be 15, etc.
The methods I used, as described above, are exactly what the Access 2000 help menu says to do. What do I need to do differently to get the group totals to be accurate?