I understand how to get that count prior to running the report but I was looking for a way to do this just within the report layout using a variable or something? I tried assigning a report variable and then using the On Entry Expression of the Group Footer band, but that doesn't seem to work.
From Cathy Pountney's "The Visual FoxPro Report Writer: Pushing it to the Limit and Beyond":
[ol]
[li]Create a report variable e.g. nGroupCount[/li]
[li]Set the value to store to 0[/li]
[li]Set the initial value to 0[/li]
[li]Set the calculate option to SUM[/li]
[li]Set the reset option to End of Report[/li]
[li]In the Group Footer "On Entry" expression enter _VFP.SetVar("nGroupCount", nGroupCount + 1)[/li]
[/ol]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.