Page break before subreport if subreport has data

  • Thread starter Thread starter Kathy Webster
  • Start date Start date
K

Kathy Webster

How can I create a page break before the subreport if and only if the
subreport has data?
Some records will have no data in the subreport, and I don't want an
unnecessary page break in those instances.
Thank you,
Kathy
 
Add a page break control and some code like:

Me.PgBrkName.Visible = Me.subrptName.Report.HasData
 
Back
Top