Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Reset Record Number in Crystal Reports

Posted on 2009-07-10
1
Medium Priority
?
1,066 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 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