H
Hank
I have a report "DepositSummary" with a subreport "DepositGifts". The
subreport is from a report with the same name.
On each report is a text box for the grand total collected They are::"=Sum(Total
Deposit) and "=Sum(DepositGifts)". The report is opened by a daterange
form. Start date and end date is entered on the form.
When the subreport was added to the main report a grand total text box was
added "=([TutionTotal])+(DepositGifts!giftstotal). Each one is named after
the "name" of the text box and not the control source.
Good news -- The report work great!
Bad news --- It only works great then there is data in the daterange.
I have not been able to come up with the right code to put in each of the
text boxes to show 0 (zero) when no data is found so that it will still
calculate a grand total and show the report and subreport. # Error is shown
when there is no data.
I have tried these and several other variations with no luck:
=IIf([Total Deposit].[DepositSummary].[HasData]=True,=Sum[Total
eposit],0) - there is a space between 'Total Deposit'
=IIF(Total Deposit.DepositSummary.hasData=True,Sum(Total Deposit),0)
The code is going in the text box control source of the report and sub
report. I am still getting '# Error' or '# Name' with the code I have
tried.
Can some one get me on the right track?
Thanks
Hank
subreport is from a report with the same name.
On each report is a text box for the grand total collected They are::"=Sum(Total
Deposit) and "=Sum(DepositGifts)". The report is opened by a daterange
form. Start date and end date is entered on the form.
When the subreport was added to the main report a grand total text box was
added "=([TutionTotal])+(DepositGifts!giftstotal). Each one is named after
the "name" of the text box and not the control source.
Good news -- The report work great!
Bad news --- It only works great then there is data in the daterange.
I have not been able to come up with the right code to put in each of the
text boxes to show 0 (zero) when no data is found so that it will still
calculate a grand total and show the report and subreport. # Error is shown
when there is no data.
I have tried these and several other variations with no luck:
=IIf([Total Deposit].[DepositSummary].[HasData]=True,=Sum[Total
eposit],0) - there is a space between 'Total Deposit'
=IIF(Total Deposit.DepositSummary.hasData=True,Sum(Total Deposit),0)
The code is going in the text box control source of the report and sub
report. I am still getting '# Error' or '# Name' with the code I have
tried.
Can some one get me on the right track?
Thanks
Hank