Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Incremental Record Number Post Reply Post New Topic
Author Message
debmac
Newbie
Newbie


Joined: 26 Apr 2009
Location: Australia
Online Status: Offline
Posts: 12
Quote debmac Replybullet Topic: Incremental Record Number
    Posted: 11 May 2009 at 5:39pm
I need to add an incremental record number to a report, so each line would look like:
1 abc
2 def
3 ghi

I have tried the Record Number field, but the record numbers dont start at 1 and are not consecutive.

Anyone has a formula or similar I could use?

many thanks
IP IP Logged
angelyin1984
Newbie
Newbie
Avatar

Joined: 08 May 2009
Location: Malaysia
Online Status: Offline
Posts: 30
Quote angelyin1984 Replybullet Posted: 11 May 2009 at 11:19pm
or try to use group number(field explorer -> special field -> group number)
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 12 May 2009 at 6:26am
shared variables.  whereever you need the numbering to start, set it to 0 in the group above.  In the section you want the number a formula like:
 
shared numberVar lineNo := lineNo +1
 
HTH
IP IP Logged
debmac
Newbie
Newbie


Joined: 26 Apr 2009
Location: Australia
Online Status: Offline
Posts: 12
Quote debmac Replybullet Posted: 12 May 2009 at 4:15pm
the formula worked. thanks heaps!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.