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

Line Number Problem

Status
Not open for further replies.

narmi68

Technical User
May 5, 2008
19
CA
Hello,

I'm a Crystal Newbie and have searched the forums and can't find a solution to my line numbering problem.

I'm currently using this formula to calculate line numbers:

WhilePrintingRecords;
Global NumberVar RowNumber;
RowNumber:=RowNumber +1;

How do I get these numbers to reset for each group? If I drill down, the numbers reset, but I would like them to reset even if I don't drill down.

If this has been solved elsewhere please provide a link.

Thanks in advance.
 
You need a reset formula in the group header:

WhilePrintingRecords;
NumberVar RowNumber;
if not inrepeatedgroupheader then
RowNumber := 0;

You don't have to specify global, since that it is the default.

-LB
 
Thanks!

I tried it out and it worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top