Friday, February 24, 2012

Getting field info from subreport

Quick question...
I have a report with a subreport. Can I reference a field/textbox in the
subreport from the main report? For example, if I have a sum calculated by
the subreport, can I display that in the report?
Thanks!hi!
you can't reference a value from SubReport in Report directly, but you can
sent this value as a parameter to a Report
1. In Subreport Set a link to main Report
1.1 Inb the Subreport select textBox or field in the table
1.2 select navigation tab of property
1.3 select "jump to Report" and chose your Main Report
1.3 as Parameter set needed calculated value from SubReport
2. Set parmater in the main Report
( with the same name as calculated value in SubReport )
3. Now you can access calculated value from SubReport in Main Report
I hope it will be usefull. i thing it is the best way to send a value
between reports in one project.
"Teros" wrote:
> Quick question...
> I have a report with a subreport. Can I reference a field/textbox in the
> subreport from the main report? For example, if I have a sum calculated by
> the subreport, can I display that in the report?
> Thanks!

No comments:

Post a Comment