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

Number each line on a report...

Status
Not open for further replies.

Perkdawg

MIS
Dec 6, 2000
3
US
I am working in Mas 200. Great if you are familiar with it. If not I think you may still be able to help me. I have a Purchase Order report and I want each line to be numbered...i.e.
1.
2.
3.
etc...

I use the count function but it will only give me the total of the items...i.e.
3.
3.
3.
if there are 3 items.

Can anyone out there tell me how to do this?

Thanks.
 
There's the recordnumber function which might work.

Otherwise you can set a variable and increment it.

First reset it to 0 at the appropriate place, such as the report header or if you have different PO's, you might do this in the group header level:

@linenumber:
whileprintingrecords;
numbervar LineNum :=0;
LineNum

Then at the display point, use this formula:

@linenumber:
whileprintingrecords;
numbervar LineNum := Linenum+1;
LineNum

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top