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

CR11 count detail line number 1

Status
Not open for further replies.

TonyFoo

Programmer
Jul 2, 2008
21
CA
Hi All,

I am currently completing a Crystal Report in Crystal Reports 11. The report displays many different items which are grouped in sections. What i need is to display the detail line number, but to reset it after each section.

Let me know if you require any more details.

thanks,

Tony
 
Use a variable

@reset
whileprintingrecords;

global numbervar i:=0;

PLace this in section header and suppress (format object)

@display
@reset
whileprintingrecords;

global numbervar i:=i+1;

Place this in your detail line

Ian
 
Or you could insert a running total that counts any recurring field, evaluate for each record, reset on change of group.

Note that you are in the wrong forum. For questions like this, you should post in forum767 or forum149.

-LB
 
Thanks guys,

I used the running total approach and it worked great.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top