1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Crystal Reports..

Discussion in 'Programming & Webmastering' started by smartali89, Jan 12, 2009.

  1. smartali89

    smartali89 New Member

    Joined:
    Dec 1, 2007
    Messages:
    525 (0.22/day)
    Thanks Received:
    13
    Location:
    Karachi, Pakistan
    I am trying to set formula field value from another formula but it gives me error that a statement is expected:

    I am using Basic Syntax..

    Code:
    Dim balance as number
    dim lastBal as number
    
    balance = 0
    lastBal = {@balCalculator}
    
    if CDbl({tblLedger.Debit}) <> 0 then 
        balance = {tblLedger.Debit} 
    else 
        balance = ({tblLedger.Credit} * -1)
    end if
    
    lastBal = (lastBal + balance)
    
    [B]{@balCalculator} = lastBal[/B]
    
    formula = {@balCalculator}
    

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page