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

record number in subreport

Status
Not open for further replies.

BineInWob

IS-IT--Management
Oct 22, 2002
2
DE
hi everybody,

i made a main report with not linked subreport and want to have the record numbers like this:

main report:
1 xxxxx
2 yyyy
3 zzzz
following subreport:
4 aaaaa
5 bbbbb
6 ccccc

how can i make it? thx for your support
 
Use the recordnumber in the Main report.

Create a shared variable and pass it to the subreport to continue iterating.

In the main report prior to the subreport place something like:
whileprintingrecords;
shared numbervar MyRecordCounter:= recordnumber;

Now in the subreport, use something like:
whileprintingrecords;
shared numbervar MyRecordCounter;
MyRecordCounter := MyRecordCounter+1

-k kai@informeddatadecisions.com
 
sorry, that doesn't work. CR always tells me that the formula cannot be evaluated at this time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top