If no records in a subreport show a string. How to?

N

Nicola M

Hi all! Access 2003

I have a report with 3 sections (subreports). All works properly.
I'd like to fix an only unpleasant particular i.e if any record is returned
by the subreport I'd like to show an information string. Now I have the label
of the subreport followed by nothing. This things could lead to a
misunderstanding because an user could think that's an error.
I guess I have to use some "domain aggregation function" but anything works
so far.

Thank you in advance for any suggestions and tips.
Nicola M
 
M

Marshall Barton

Nicola said:
Hi all! Access 2003

I have a report with 3 sections (subreports). All works properly.
I'd like to fix an only unpleasant particular i.e if any record is returned
by the subreport I'd like to show an information string. Now I have the label
of the subreport followed by nothing. This things could lead to a
misunderstanding because an user could think that's an error.
I guess I have to use some "domain aggregation function" but anything works
so far.


Add a transparent text box (on top of the subreport?) to the
main report and set its expression to something like:

=IIf(subreportcontrol.Report.HasData, Null, "No data ...")
 
N

Nicola M

Marshall Barton ha scritto:
Add a transparent text box (on top of the subreport?) to the
main report and set its expression to something like:

=IIf(subreportcontrol.Report.HasData, Null, "No data ...")

Thanks.
Nicola M
 

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