Skip to Content
author's profile photo Former Member
Former Member

numbering records within each group

i want to numbering records within a group, (put 1, 2, 3.. in front of each record)

"RecordNumber" function will numbering since the very first one of the report,

i also tried formula "coun":

WhilePrintingRecords;

numbervar coun;

coun:=coun+1;

this also numbering from the beginning of the report.

how can i get a record number from 1 for each group?

hiccup

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2011 at 04:32 PM

    Hi

    To achive what you are looking for needs 2 formulas to be created :

    @init // place this formula in group header

    WhilePrintingRecords;

    numbervar coun:=0;

    @accu // place this formula in your detail under group

    WhilePrintingRecords;

    numbervar coun;

    coun:=coun+1;

    This will give serial number for each group.

    Thanks,

    Sastry

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2011 at 04:25 PM

    running total on change of "group" use count does that do what you want?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.