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

Crystal Reports..

Joined
Dec 1, 2007
Messages
528 (0.14/day)
Likes
13
Location
Karachi, Pakistan
System Name mAkS
Processor Intel Core 2 Duo E0 E8400 @3.0Ghz (Acheived 4.4Ghz On Stock Cooling)
Motherboard Asus P5K-V (Dead :[ )
Cooling CPU + Front + Rear + Side
Memory XMS2 DHX TWIN2X2048-6400C5DHX/800 BUS
Video Card(s) Inno3D 9600 GT Overclocked
Storage Seagate Sata II 250 GB ++ 500 GB
Display(s) Hp 2009f 20-inch Wide-screen
Case Legend
Audio Device(s) Build-In 8 CHannel (Dell 5.1")
Power Supply CoolerMaster 460W eXtreme Power Plus
Software Many
Benchmark Scores E8400 hardware rank 94th on hwbot in wPrime :D
#1
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}