|
-
Dec 31st, 2006, 12:15 PM
#1
Thread Starter
Fanatic Member
Running Toal Problem
Hello,
I m using Crystal Report 9.
I want to make Account Ledger Report.
I have developed it using 3 formulas. (1) Initialize (2) Evaluate (3) LastBal
In Initialize i wrote:
whileprintingrecords;
numbervar RunningTotal;
runningtotal :={@LastBal};
In Evaluate i wrote:
whileprintingrecords;
numbervar runningtotal;
runningtotal := runningtotal + tonumber({Tbl_Ac_Ledger.Dr_Amt}-{Tbl_Ac_Ledger.Cr_Amt});
In LastBal i wrote:
0
I used LastBal for getting data from VB.
I have placed Initialize in Page Header and Evaluate in Details.
All working good. but the problem is that when report goes to 2nd page. Initialize got 0 and thats why calculate wrong because of the last balance of 1st page.
i want that when go to page 2 initialize automaticallly get the last balance of first page.
Please help me
Farooq
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|