Skip to Content
0
Former Member
Oct 29, 2008 at 04:54 PM

Passing shared variables

888 Views

Good day to all,

First off i'm using VS 2008 to create my reports.

I'm trying to pass shared variable from a sub report to a main report.

In my sub report my code looks as follow:

WhilePrintingRecords;

Shared numberVar SecMarketValue1 := (Sum ({usp_wb_Reporting_Fixed_Income_Appraisal;1.MARKET_VALUE}))

put the formula in my sub report to test and I get the desired output.

here is the code in my main report

WhilePrintingRecords;

Shared numberVar SecMarketValue1;

SecMarketValue1

I would also like to say I don't not have surpress blank sub report checked.

I also have the formula below where the sub report is placed.

the above is just testing to get ot my main goal.

*my main goal is to get something like this*

whilePrinting Records;

shared numberVar SecMarketValue1;

shared numberVar MortMarketValue2;

shared numberVar CMOMarketValue3;

shared numberVar MuniMarketValue4'

SecMarketValue1 + MortMarketValue2 + CMOMarketValue3 + MuniMarketValue4

Basically a grand total of all market values

and if this is not possiable please someone let me know.