Results 1 to 2 of 2

Thread: Running Toal Problem

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Quetta-Pakistan
    Posts
    852

    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

  2. #2
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Re: Running Toal Problem

    ok , well please if u can use the running total field provided by crystal report itself. it work correctly , still if u find the same problem then let me know.
    Thanks and Regards,

    Muhammad Abbas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width