Solved

Reset Record Number in Crystal Reports

Posted on 2009-07-10
1
986 Views
Last Modified: 2012-06-27
I want to show a count of each record in a report but I want to reset it to 1 for each group.  Currently it just continues to count because I am using the "Record Count" field.  Any ideas?

Note that I am using CR 8
0
Comment
Question by:Bob Schneider
1 Comment
 
LVL 17

Accepted Solution

by:
pssandhu earned 500 total points
ID: 24827990
OKay, lets assumme you have report like so:
GH - Group Header Section
D - Detal Section
GF - Group Footer Section
1. Create a formula like below and place it in the Detail Section -
WhilePrintingRecords;
SharedNumberVar ct;
Ct := Ct + 1;
Ct
2. Create another formula and palce this in the Group Footer;
WhilePrintingrecords;
Shared Numbervar ct;
ct
3. And to reset create another formula to place it in the Group header:
WhilePrintingRecords
Shared Numbervar Ct := 0;
And this should do it. Hope this helps.
P.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question