Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Formula has wrong results Post Reply Post New Topic
Author Message
remo
Newbie
Newbie
Avatar

Joined: 18 Oct 2007
Location: Singapore
Online Status: Offline
Posts: 12
Quote remo Replybullet Topic: Formula has wrong results
    Posted: 23 Oct 2007 at 9:08am
am beginner to crystal reports, i ve some doubts wen am using ths...thanx 4 ur supports,,,, hop u people will help me everytime...]

wen i was using sum like ths

({TradeNetMessage.TotCustomDutyAmt} + {TradeNetMessage.TotGST} + {TradeNetMessage.TotAmtPaid} + {TradeNetMessage.TotCustomDutyAmt

itz result was only last records sum, but i need whole records sum , wt can i do 4 dat?
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 23 Oct 2007 at 9:30am
If you want formulas to accumulate over the full report, then you need to assign it to a global variable. Then you can print the global variable at the end of the report. Here is a sample formula that you can play with:
Global NumberVar Summary;
Summary := Summary + ({TradeNetMessage.TotCustomDutyAmt} + {TradeNetMessage.TotGST} + {TradeNetMessage.TotAmtPaid} + {TradeNetMessage.TotCustomDutyAmt})

To print the summary, create another formula which simply returns the value and put that on the report.
Global NumberVar Summary;
Summary;

Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
remo
Newbie
Newbie
Avatar

Joined: 18 Oct 2007
Location: Singapore
Online Status: Offline
Posts: 12
Quote remo Replybullet Posted: 24 Oct 2007 at 3:50pm
Thanks Brian ur SmileSmileformula works now,,,, Thanx once again
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.