J
James Martin
Hello,
I have a report which needs to print two identical copies of each page and
then a third largely-identical copy of some pages. What I have done is
create a sub-report and add it three times to the report. Then in the
Detail_Format event of the main report I make the third sub-report visible
or invisible, depending on how many copies of the page we need. This is all
working fine.
The trouble I'm having is that, for the pages where we need three copies,
the client wants certain fields on copy 3 to not be printed.
I realize that I could create a separate sub-report to be used for copy 3
and omit these fields from it. But this means remembering to update two
sub-reports anytime changes are made. I'd prefer to use the same sub-report
three times and have it hide those fields via code whenever it's the third
copy.
So, to recap, I have three sub-report controls on the parent report which
are all really the same sub-report. Is there some way from within the
sub-report to determine which of the three sub-report controls on the parent
it's in. That way I could show/hide the necessary controls based on whether
or not we're on copy 3.
Alternatively, is there a better way to accomplish what I'm trying to
accomplish?
Thanks in advance.
James
I have a report which needs to print two identical copies of each page and
then a third largely-identical copy of some pages. What I have done is
create a sub-report and add it three times to the report. Then in the
Detail_Format event of the main report I make the third sub-report visible
or invisible, depending on how many copies of the page we need. This is all
working fine.
The trouble I'm having is that, for the pages where we need three copies,
the client wants certain fields on copy 3 to not be printed.
I realize that I could create a separate sub-report to be used for copy 3
and omit these fields from it. But this means remembering to update two
sub-reports anytime changes are made. I'd prefer to use the same sub-report
three times and have it hide those fields via code whenever it's the third
copy.
So, to recap, I have three sub-report controls on the parent report which
are all really the same sub-report. Is there some way from within the
sub-report to determine which of the three sub-report controls on the parent
it's in. That way I could show/hide the necessary controls based on whether
or not we're on copy 3.
Alternatively, is there a better way to accomplish what I'm trying to
accomplish?
Thanks in advance.
James