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!

How to give SL NO for rows in a group ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a report of employees group by department.
I want to give serial numberes for employees in each group(department).The serial number under each group should start from 1.
for eg
The report should be as shown below


Accounts
1)----------
2)----------
3)-----------
Finance
1)-------------
2)------------
3)------------
sales
1)----------
2)-----------
3)-----------

 
Hi,

Include a "computed-column" in your SQL-Select statement such as:

1 AS SNO


This computed-column is repeated for each row with a value of 1 when you retrieve data. Now, remove the computed-column from the layout and add a "computed-field" in the detail band with the expression:

CumulativeSum( SNO for Group <n> )


That should work.

Regards,

Scott
-----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top