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

Reset record number on change of group

Status
Not open for further replies.

menuch

MIS
Jan 8, 2003
46
US
How can I reset the record number on change of a group?

Thanks!

Menuch
 
Make a variable to keep track of the value that you're grouping by and then act accordingly.


Shared stringvar groupValue;

if {GroupNameValue} <> groupValue then
//run code here

groupValue := {GroupNameValue};

//blah blah blah

There may be a more official way to do it but that should work.

cheers

pgtek
 
If you use a Running Total, that has an option to start afresh on each group.

Alternatively, you could add an invsible field to clear a variable in the group header.

Madawc Williams
East Anglia, Great Britain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top