Hi Joe,
for this you can use shared variables :)
Here i have a little example for you (uses the taxes from sub to main) report.
Example: Use Data from sub-report in the main-report
(for the other way, you assign the variable in the main-report like the
example-code)
-
add
a new formula field in the sub-report (called taxnumber)
-
fill
it with:
Shared STRINGVAR TAXNUMBER :=
{Taxes.TaxNumber}
TAXNUMBER is the variable name
:= is the assignment
then click on “save and close”
-
Go
to the main-report
-
add
a new formula field (called taxnumber, there is no problem with the same name)
-
fill
it with:
Shared STRINGVAR TAXNUMBER;
IF TAXNUMBER > ' '
THEN TAXNUMBER
ELSE ' - '
-
place
the formula field where do you like
best regards
mike
Edited by Stang67 - 19 Sep 2011 at 5:23am