Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formula for consecutive numbering

Status
Not open for further replies.

RepRider

Technical User
Jan 25, 2007
114
US
Crystal XI with SQL

I would like to be able to insert a column that numbers the rows of detail data displayed in consecutive order.
If there are 23 lines of data then the column would show numbers 1 thru 23.

I have no idea how to do this. Can someone give me a start?

Thanks!
 
Use a formula of:

recordnumber

Or if your sortation doesn't allow fo this, you can use a formula in the details section of:

whileprintingrecords;
numbervar MyCounter:=MyCounter+1;
MyCounter

-k
 
Thanks synapse!

I will try the latter. I have tried the recordnumber but it doesn't display consecutive numbers. Mybe I did it incorrectly though.
 
Rep,

Recordnumber should always work unless you have suppressed detail records. Have you done this and if so, why?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"What version of URGENT!!! are you using?
 
Synapse,
Theformula worked perfect!!
I will be using this A LOT!
Thank you, thank you, thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top