Solved

Reset Record Number in Crystal Reports

Posted on 2009-07-10
1
1,008 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

707 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