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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Declare variable to pass sub-report report total to main

Status
Not open for further replies.

CLogix

MIS
Joined
Feb 14, 2007
Messages
4
Location
US
How would I declare a variable to pass the report total of a sub-report to the main report? In the sub-report I declared:

whileprintingrecords;
numbervar Total := sum({@Labor});

In the main report I called:
whileprintingrecords;
numbervar Total

This did not work.





 
Add the word Shared at the start of the cdeclaraion:

whileprintingrecords;
Shared numbervar Total := sum({@Labor});

In the main report:
whileprintingrecords;
Shared numbervar Total

- Ido

view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top