Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Passing variable value from Details to RF Post Reply Post New Topic
Author Message
jsismis
Newbie
Newbie


Joined: 28 May 2009
Online Status: Offline
Posts: 2
Quote jsismis Replybullet Topic: Passing variable value from Details to RF
    Posted: 26 Aug 2009 at 4:47am
Hi everybody,

I'm trying to create report for Top N clients where N is given by the parameter field. The detail section gives a revenue per client and in the report footer I'd like to have the sum revenue for the selected set of top N clients.
I created a following formula to calculate the sum:
Global NumberVar x3;
if recordnumber <= ToNumber({?Number of Customers}) then x3 := x3 + {@Accounts Receivables PrevYear}
else x3 := x3

The result in the RF gives me the sum of all records from Details but the value from the last record is added twice.

Does anybody know how I could handle this problem?

Thanks a lot.

J


Edited by jsismis - 27 Aug 2009 at 12:06am
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.