Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing Subrport field?

Status
Not open for further replies.

liuk

Programmer
Jan 16, 2006
54
IT
Hi,
it's possible to access a subreport field from the main report?
 
You can share data between MAIN and SUBREPORTS by using a shared variable.

Your skimpy post shared nothing technical about where the subreport is within the main report, software version, and keep in mind that subreports issue a SQL statement for each execution so they are commonly avoided for performance resons.

An example of sharing information would be:

//subreport code
whileprintingrecords;
shared numbervar MyTotal:= sum({table.field})

Then in a section AFTER the subreport fires, use:

whileprintingrecords;
shared numbervar MyTotal;
"Subreport returned " & MyTotal

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top