Start and End Dates show error

G

Guest

I now have my start and end dates in my report but if there is no data
entered between the start and end date it shows error not the dates how do I
always show the dates even if there is nothing in the detail of the report
thanks
 
A

Allen Browne

Calculated controls typically show #Error when there is no data.

A simple way around that is to cancel the No Data event of the report, so it
doesn't open if there is no data.

Or, you can test the HasData property of the report, using IIf() in your
expression. For example, if the problem control currently thas this in its
ControlSource:
=Sum([Amount])
use:
=IIf([Report].[HasData], Sum([Amount]), Null)
 

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