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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

generate number list in report

Status
Not open for further replies.

channelmaster

Technical User
Dec 9, 2001
52
PH
Hi! How can I generate a number list in a report? this number list does not have a field in a table, for example,
when I make a list of customer in a report, it should automatically generate a number list:

1 Mr. Alpha
2 Mr. Foxpro
3 Mr. USA
|
|
and so on...

Is this possible? Thanks in advance

Channel
 
Channel,

Create a report variable (Report menu - Variables). Create a name and choose the Count option.

You can then use this variable in a report field.

Andy
 
If the table or cursor is in TRUE order and there are no deleted records you can use the RECNO() function. You may need to make it a string if you are concatinating it with the name.

ALLTRIM(STR(RECNO())) + ". " + table.emp_name

OR (using pad)

PADL(ALLTRIM(STR(RECNO())),3,' ') + ". " + table.emp_name


Jim Osieczonek
Delta Business Group, LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top