Accessing a field in a subreport

G

Guest

I have a subreport in the footer of a main report. The subreport has a field called balance in the detail section and a totalbalance field = sum(balance) in the footer of the subreport

How do I reference the totalbalance field in the main report footer? I would like to add the totalbalance value to another value in the main report footer and display the sum, but I keep getting an error every time I try. Is this a syntax problem, or do I need a function to obtain the value

Any help would be appreciated
 
D

Duane Hookom

Try:
=IIf(srptName.Report.HasData,srptName.Report.TotalBalance,0)+[AnotherValue]

--
Duane Hookom
MS Access MVP


Eric said:
I have a subreport in the footer of a main report. The subreport has a
field called balance in the detail section and a totalbalance field =
sum(balance) in the footer of the subreport.
How do I reference the totalbalance field in the main report footer? I
would like to add the totalbalance value to another value in the main report
footer and display the sum, but I keep getting an error every time I try.
Is this a syntax problem, or do I need a function to obtain the value.
 

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