General information
Category:
Reports & Report designer
Nope, we are talking about the same thing. Here's what I proposed (I just tested it and it works):
>>>>
A VFP trick, count groups 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
<<<<
It's a trick because it uses the Initial value to increment the counter (the Value to Store is not used, it just copies the previous value).
Almost obvious, the variable must be reset at group level (otherwise, the counter is not incremented).
Vlad
>Vlad, I think we're talking about different things. I wanted a variable that would count the number of Groups, not the number of details in each group. Re-setting the variable at group level gives a group sub-total, but counts each detail.
>
>Barbara
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only