Solved

Reset Record Number in Crystal Reports

Posted on 2009-07-10
1
975 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now