Solved

How to reset Crystal Report's Record Number on change of group?

Posted on 2010-09-09
5
2,079 Views
Last Modified: 2012-05-10
Hi All,

I need a report of items grouped by item category like below. I use Crystal Report 7.

Category A
  1. Item1
  2. Item2
  3. Item 3

Category B
  1. Item4
  2. Item5


I get below result:
Category A
  1. Item1
  2. Item2
  3. Item 3

Category B
  4. Item4
  5. Item5

The problem is...

Item serial number is not reset for each group. You can see Category B starts with item serial number 4.  How to reset Record Number on change of group?

Thank You
Regin T
0
Comment
Question by:Fi-es
5 Comments
 
LVL 31

Expert Comment

by:RiteshShah
Comment Utility
why don't you generate serial number from SQL Server itself and bind it to Crystal?????
0
 

Author Comment

by:Fi-es
Comment Utility
I am supposed not to change the stored procedure.  But I have to prepare the report in the format I explained.

I may use formula in crystal report.
0
 
LVL 19

Accepted Solution

by:
GJParker earned 500 total points
Comment Utility
You could use a running total have the summary as a count of item, evaluate fro each record and reset on change of category group

HTH
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
Comment Utility
I would do what GJParker recommends, personally.

~Kurt
0
 
LVL 19

Expert Comment

by:GJParker
Comment Utility
Did this work ?
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

771 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

10 Experts available now in Live!

Get 1:1 Help Now