Sub Report Totals

B

berkBW

I have a report that when added to the main report as a sub report, I get one
extra count in my total. So the report totals correctly by itself but when
used as a sub report I get one extra count.
 
D

Duane Hookom

It would help if you told us how the count was calculated. Is it a text box
with a control source like:
=Count(*)
 
B

berkBW

With in the details section of the report I have a number of text boxes that
have Iif statements in them that are set to calculate the totals. Then in the
footer section I reffer to those text boxes =[txtTotalDI] to display the
totals.
 
D

Duane Hookom

I would use an expression that only references fields and calculations from
the report's record source, not values of controls from other sections of the
report.
--
Duane Hookom
Microsoft Access MVP


berkBW said:
With in the details section of the report I have a number of text boxes that
have Iif statements in them that are set to calculate the totals. Then in the
footer section I reffer to those text boxes =[txtTotalDI] to display the
totals.

Duane Hookom said:
It would help if you told us how the count was calculated. Is it a text box
with a control source like:
=Count(*)
 
B

berkBW

Well my Iff statements references the query that the report uses, to get it's
totals. If that is what you mean. Again the report works fine until you put
it in the main report. Then their is only one "total" that has one extra
value.

Duane Hookom said:
I would use an expression that only references fields and calculations from
the report's record source, not values of controls from other sections of the
report.
--
Duane Hookom
Microsoft Access MVP


berkBW said:
With in the details section of the report I have a number of text boxes that
have Iif statements in them that are set to calculate the totals. Then in the
footer section I reffer to those text boxes =[txtTotalDI] to display the
totals.

Duane Hookom said:
It would help if you told us how the count was calculated. Is it a text box
with a control source like:
=Count(*)

--
Duane Hookom
Microsoft Access MVP


:

I have a report that when added to the main report as a sub report, I get one
extra count in my total. So the report totals correctly by itself but when
used as a sub report I get one extra count.
 
D

Duane Hookom

Your IIf() statements in one section refer to fields but you also stated
"Then in the
footer section I reffer to those text boxes". I would search for a method
that doesn't reference "controls" from other sections.
--
Duane Hookom
Microsoft Access MVP


berkBW said:
Well my Iff statements references the query that the report uses, to get it's
totals. If that is what you mean. Again the report works fine until you put
it in the main report. Then their is only one "total" that has one extra
value.

Duane Hookom said:
I would use an expression that only references fields and calculations from
the report's record source, not values of controls from other sections of the
report.
--
Duane Hookom
Microsoft Access MVP


berkBW said:
With in the details section of the report I have a number of text boxes that
have Iif statements in them that are set to calculate the totals. Then in the
footer section I reffer to those text boxes =[txtTotalDI] to display the
totals.

:

It would help if you told us how the count was calculated. Is it a text box
with a control source like:
=Count(*)

--
Duane Hookom
Microsoft Access MVP


:

I have a report that when added to the main report as a sub report, I get one
extra count in my total. So the report totals correctly by itself but when
used as a sub report I get one extra count.
 

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