How do I Remove the sub-report page if it has NO-DATA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a report having two sub-reports in it, to view sub-reports in
seperate page I use page break after sub-report, and in the sub-report's NO
DATA property I code Me.Report.Visible = False.
when I view the report it shows blank page of sub-reprt where the sub-report
has no data.

I want to know how to remove the page from the report if the sub report has
no data.
 
You might try using the KeepTogether property with or instead of the page
break. Setting this property to True for a Group or Section forces all or
at least as much as possible to the next page if it won't fit on the first
one. Use the On NoData event to set the subreport control height to 0 if
there is no data, ensuring that a new page won't be forced.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top