Forcing subreports to print

  • Thread starter Thread starter Carl Rapson
  • Start date Start date
C

Carl Rapson

Is there any way to 'force' a subreport to print, even if there is no data?
I have a report that contains several subreports, and I would like to print
the headers from each subreport, even if there are no data records to print.
Is there any way to do this?

Thanks for any information,

Carl Rapson
 
Carl said:
Is there any way to 'force' a subreport to print, even if there is no data?
I have a report that contains several subreports, and I would like to print
the headers from each subreport, even if there are no data records to print.
Is there any way to do this?


No, you can not make an empty subreport display anything.

What you can do is place a copy of the headers in a label or
text box on the main report in the same place as the
subreport. Then use a little code in the Format event of
the section containing the subreport:

Me.txtHeader.Visible = Not Me.subreport.Report.HasData
 
Marshall Barton said:
No, you can not make an empty subreport display anything.

What you can do is place a copy of the headers in a label or
text box on the main report in the same place as the
subreport. Then use a little code in the Format event of
the section containing the subreport:

Me.txtHeader.Visible = Not Me.subreport.Report.HasData

Thanks again, Marshall. I should have known that one.

Carl
 
Back
Top