>Just as a VFP trick, I believe this can be done with just one public variable defined outside the report:
>
>MyCounter = 0 && Outside the report
>
>Define a report variable with the name "MyCounter":
>
>Initial value: MyCounter = MyCounter + 1
>Value to store: MyCounter
>
>This way, at detail level, its value remains unchanged and it increments when the group changes.
I do something very similar to this for one of my 2.6 reports. I have it setup to initialize the public variable to 0 before coming into the report, and have the incrementing report variable set to calculate when group level one changes. I'm not sure if my use for this is the same here, but on this particular report I do alot of subtotals that can be nested up to 5 groups deep (minimum of 1 group). When the data is such that all 5 groups are printed, I need a sixth group to print a series of averages (and not print if all 5 groups are not present), and this Counter trick works perfectly.
Roxanne M. Seibert
Independent Consultant, VFP MCP
Code Monkey Like Fritos