on 05-02-2009 1:29 PM
Hi Experts
I wantto know how to use a shared variable in a main report and its subreports. I have create a shared variable in main report coding is given below.
whileprintingrecords;
shared numberVar inv_amt;
if doc_amt> 100000 then
inv_amt := inv_amt + doc_amt;
inv_amt
I placed this formula in detail section it works properly. now i want to show the last total value in sub report also How I can do this?
Regards
Gorge
HI Ance,
Create new Formula in Sub-Report with below code and put where you want to show the total.
shared numberVar inv_amt;
inv_amt;
Hope this will help u .
Rgds,
Premraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As what I understand you want to get the total of the last record from detail section of the sub report?
Please explain further,
Regards,
Clint
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.