T
Travis Cornwell
I have several subreports embedded in a main report and I would like the
item number on one sub-report to affect the item numbering in another
sub-report. I presently have the following setup:
OnPrint for the subreport detail:
Me![txtItemNumber] = GetItemNumber (in a common function)
currItemNumber = currItemNumber + 1
GetItemNumber = currItemNumber
'currItemNumber resets as necessary
However, this will NOT work if the page is user manually prints a page
numbering instead of scrolling through. If you start on page 1, and then go
to page 5, ItemNumbering will start with the n+1 (n being the last number on
page 1), instead of starting at m+1 (where m represents the number of items
included on pages 2,3 and 4).
RunningTotal fixes this problem (even with manual scrolling) but I do not
know how to dynamically relate runningtotals on subreports such that:
RunningTotal on report A = (RunningTotal on SubReport A) + (RunningTotal on
any number of other possible SubReports)
Any suggestions/help much appreciated, thank you!
item number on one sub-report to affect the item numbering in another
sub-report. I presently have the following setup:
OnPrint for the subreport detail:
Me![txtItemNumber] = GetItemNumber (in a common function)
currItemNumber = currItemNumber + 1
GetItemNumber = currItemNumber
'currItemNumber resets as necessary
However, this will NOT work if the page is user manually prints a page
numbering instead of scrolling through. If you start on page 1, and then go
to page 5, ItemNumbering will start with the n+1 (n being the last number on
page 1), instead of starting at m+1 (where m represents the number of items
included on pages 2,3 and 4).
RunningTotal fixes this problem (even with manual scrolling) but I do not
know how to dynamically relate runningtotals on subreports such that:
RunningTotal on report A = (RunningTotal on SubReport A) + (RunningTotal on
any number of other possible SubReports)
Any suggestions/help much appreciated, thank you!