
Hi, I've used shared variables sucessfully in the past, but I'm having trouble with one and I'm not sure why.
I'm working with a Trial Balance report, that simply returns a Year To Date balance for each account.
I need to convert that report to return only activity from a certain point in time.
Essentially, the report should continue to return the YTD balance, but then subtract the balance as of June 30. So, if the balance at June 30 was "3", and the balance at the end of August was "7", the report would yield "4".
In the subreport, which is just a list of accounts in the first column and balances in a 2nd column, I have the followong variable assigning the shared variable:
Shared NumberVar Jun2010EndBal;
Jun2010EndBal := ToNumber(({@Balance at Date})
As a test to see if it is working, I drop this in as a third column in the report, and it displays the balance (so I think it is working).
In the main report, I'm using the following variable to place the value in the report:
Shared NumberVar Jun2010EndBal;
Jun2010EndBal
As a test here, I am also placing the variable as a third column in teh report, but it just shows zero for every account.
Any suggestions?
Thanks,
Paul
Edited by pgiering - 30 Sep 2010 at 8:13am