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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Group Counts in Reports

Status
Not open for further replies.

Nicholls

Programmer
Jan 11, 2000
4
US
I have been writting Foxpro reports for years, but am stumped to figure out how to get a count of my groups. I just want to get a count of the number of groups I had, at the end of the report. I have created variables, but they all total the number of items in the group. I figure it must be easy, but I have not been able to get it to do this. Any one have any suggestions! I am getting really frustrated!!!!
Linea
 
Hi Linea,

Define a report variable, initialized to zero, to hold the total. In the Report Designer double-click on the group header or footer band in question. There you can input an expression, such as mytot = mytot + 1. At EOF mytot will have your number.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top