When report is empty show a standard phrase (newbie)

B

bikemrh

I have a report with subreports in it. When one of the subreports is empty I
would like to have a standard phrase show up such as "There are no additons
today". I am using Access 2003.

Is this possible?
 
A

Allen Browne

Try a text box with this expression:
=IIf([Report].[HasData], Null, "There are no additions.")

If you have any other calculated fields, that might fail, since calculating
non-existent fields results in #Error, and Access quits calculating the
calculated controls when one is uncalculatable.
 
R

Rob

i would say:
create a field on your main report and give it the source
=IIf([subformname].[Report].[HasData];null;"The subform has no data")
 
B

bikemrh

Allen,

This worked perfect. Thank you for your help.

Allen Browne said:
Try a text box with this expression:
=IIf([Report].[HasData], Null, "There are no additions.")

If you have any other calculated fields, that might fail, since calculating
non-existent fields results in #Error, and Access quits calculating the
calculated controls when one is uncalculatable.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

bikemrh said:
I have a report with subreports in it. When one of the subreports is empty
I
would like to have a standard phrase show up such as "There are no
additons
today". I am using Access 2003.

Is this possible?
 

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