Displaying sub reports with no data

B

Brian Hancox

Hi, I have a report which displays a header, a label and
a text box. Within this report the query builder filters
records. In some cases there is no data returned. When
this report is run, the header is displayed, the label is
displayed and the text box is empty. This is fine, as
there is no data. However, when this report is a sub
report within another report, nothing is displayed at
all, not even the header! Any ideas why? or how to
overcome the problem.
 
A

Allen Browne

If you want to display the header labels even when there is no data in the
subreport, cut the labels and put them on the main report.

Alternatively, you could use a text box on the main report with a Control
Source like this:

=IIf([NameOfSubreportControlHere].[Report].[HasData], Null, "Some text for
when there is no data")
 

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

Top