Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Help Post Reply Post New Topic
Author Message
harveyc
Newbie
Newbie
Avatar

Joined: 16 Sep 2008
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote harveyc Replybullet Topic: Formula Help
    Posted: 16 Sep 2008 at 12:57am

Hi

 

I am fairly new to crystal and I am looking for some help with a formula.

I have crystal linked to an access database and I am looking for crystal to change the reporting of an amount to 0  if a parameter is not "Accepted" for certain deal numbers. I have tried using the If Then Else formula without success.

I am trying to write a formula that = If the {Crystal_reports_query_finance.Deal No} is equal to (9138) and the {Crystal_reports_query_finance.Saving Accepted ?} does not = “accepted” then change the {Crystal_reports_query_finance.Charges in Local Currency} to 0

I hope this makes sense and somebody can point me in the right direction.

Thanks

IP IP Logged
JohnT
Groupie
Groupie
Avatar

Joined: 20 Jan 2008
Online Status: Offline
Posts: 92
Quote JohnT Replybullet Posted: 16 Sep 2008 at 7:32am
What kind of error are you getting ? 
 
I am thinking it is because you are trying to assign a value to the {Crystal_reports_query_finance.Charges in Local Currency}.  Why don't you create a formula field.  Call it "local currency" (or whatever you want)  and add the formula:
 
If {Crystal_reports_query_finance.Deal No} = 9138 and  {Crystal_reports_query_finance.Saving Accepted ?} <> “accepted” then
    0
else
    {Crystal_reports_query_finance.Charges in Local Currency}
 
 
This will assign "local currency" the value of "Crystal_reports_query_finance.Charges in Local Currency" or 0, depending on the if statement.
 
Move this field "local currency" to your report in place of the {Crystal_reports_query_finance.Charges in Local Currency} field.
 
Give it a try !
IP IP Logged
harveyc
Newbie
Newbie
Avatar

Joined: 16 Sep 2008
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote harveyc Replybullet Posted: 16 Sep 2008 at 8:23am
Hi Johnt
 
This has worked how you explained.
 
Many Thanks for your help!!!
 
 
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.