you can if you put the word Report between the subreport name and the
'control' name (find the name of the control, and change it if you wish,
using the Property box.
So if the text box in your subreport is called MyText
and your subreport *Control* is called MySub
Then in your main report you can have a text box which says
=[MySub].[Report].[MyText]
If you wanted to do a sum with it you could
=Sum([MyCosts])-[MySub].[Report].[MyText]
If your subreport wasn't linked to the main report, then this would be fine
BUT
with a linked subreport the main form's control won't be adding up all the
items in your Subreport. It will only show you want is in the last
*filtered* view of the subreport.
So if you were adding up invoices and the invoices added up to £27 but the
last invoice only added up to £5 then your Main report's Footer control
would only see that £5
Sometimes there is no avoidng DSum
Evi
ridgerunner said:
Can the footer of the "main" report use the information in the footer of a
subreport?
ridgerunner said:
:
ridgerunner wrote:
I tried this using the expression builder but I get the #NAME? error on
the
report. What could I be doing wrong?
:
What did you use as the subreport control names? Note the
the subreport **control** names can be different from the
name of the report object it will display.
ridgerunner wrote:
I tried to use the name of the subreports and the field I need to have a
grand total for at the end of the report. I am not very experienced in
doing this sort of thing with Access. I have 3 subreports that have a
subtotal that I need to sum together at the end of the report. I am not
certain that I am interpreting the word 'control' correctly.
A Control is anything that is in the report when you look at it in Design
View. this includes the fields, the text boxes you add, the lines,
subreports, pictures, labels etc.
To find the name of your subreport, open the *main* report in Design view (I
find them quite tricky to select in Acc2k)
Click on the Subreport. In the Properties box, click on the Other Tab and
look next to Name. I usually save myself alot of confusion by changing this
name if I have to, so that it is the same as the name of the report in the
Database window - it isn't always!
Evi
When I click on the properties for the subreport, I do not see "name" under "other". Would that be the same as "caption"?
I tried using the expression builder again and these are the results I get:
=Sum([Score])+ Reports![SubRptProd_Cust_Clean]![SubTotProd_Cust_Clean]
It seems that this should work.