Malcom,
One other important point to remember when using shared variables between subreports/main reports. The subreport assigning the shared variable must appear in a PREVIOUS section of the Main report before it can be used in the main report. IN other words, if your subreport is in the details section of the main report, the variable won't be updated in the Main report until you get to a "details b" section or a footer section.
Troy Funte
Liberty Electronics
One other important point to remember when using shared variables between subreports/main reports. The subreport assigning the shared variable must appear in a PREVIOUS section of the Main report before it can be used in the main report. IN other words, if your subreport is in the details section of the main report, the variable won't be updated in the Main report until you get to a "details b" section or a footer section.
Troy Funte
Liberty Electronics
----- Original Message -----
From: Mike Lowe
To: vantage@yahoogroups.com
Sent: Tuesday, July 09, 2002 2:32 PM
Subject: Re:[Vantage] [OT] Crystal Reports question
yes. declare both variables in the subreports as formula fields using the
following syntax
// In this example the variable is a number variable
shared global numberVar XXXX := the value ;
Then create formulas in the main report calling this same variable
// the variable name from subreport 1 in this example
shared global numberVar XXXX;
It's important to place the formula in the report (you can suppress printing if
necessary) or the variables will not work properly.
Crystal help has a pretty good section on variables. I refer to it all the time
as I confuse easily!
HTH,
Mike
____________________Reply Separator____________________
Subject: [Vantage] [OT] Crystal Reports question
Author: <vantage@yahoogroups.com>
Date: 7/9/2002 11:13 AM
Is it possible to pass a variable *back* from a sub-report to the main
report in Crystal? In other words:
Main Report
Sub-Report #1
Resulting Variable #1
Sub-Report #2
Resulting Variable #2
Main Report calculation, using Variables #1 & #2
Thanks in advance.
============================================
Malcolm Spann
MIS
Malmberg Engineering
(925) 606-6500 x19
Malcolm@...
============================================
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Yahoo! Groups Sponsor
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]