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!

Adding subreport values with report values?

Status
Not open for further replies.

Frostburn

Programmer
Jul 10, 2001
8
US
Within the SAME report, I have both details areas (main report,) with subreport areas as well. I must add a value within the subreport with a similiar value outside of the subreport. How is this possible? What is the syntax for the formula field?

Thanks
 
The only way I know of passing a value between sub report and primary report is to use a shared variable.

Declare the variable within the source report, pass the value you want to the variable and then call the variable within the destination report.

For example: You need to pass the value "255" from the sub to the primary then:

shared numbervar var01; (declare the variable and call it var01)

var01:={databasefield}

(assign the value 255 from the database field into var01)

then create a formula field within your destination report, declare the variable and it will be displayed or available for use in a calculation.
 
see crystal kbase article c2007600
for steps on how to create the shared variables and what to do with them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top