Nov 6, 2007 #1 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.
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.
Nov 6, 2007 #2 IdoMillet Instructor Joined Feb 6, 2001 Messages 5,290 Location US 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. http://www.MilletSoftware.com Upvote 0 Downvote
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. http://www.MilletSoftware.com