Solved

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

Posted on 2010-09-09
5
2,153 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
ID: 33634982
why don't you generate serial number from SQL Server itself and bind it to Crystal?????
0
 

Author Comment

by:Fi-es
ID: 33635699
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
ID: 33635874
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
ID: 33637012
I would do what GJParker recommends, personally.

~Kurt
0
 
LVL 19

Expert Comment

by:GJParker
ID: 33654303
Did this work ?
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
migration MS SQL database to Oracle 30 61
MS SQL with ODBC 5 36
Return 0 on SQL count 24 29
Can > be used for a Text field 6 40
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
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…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

770 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