Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: "Or IF" function error Post Reply Post New Topic
Author Message
colinh10
Newbie
Newbie
Avatar

Joined: 17 Jan 2012
Location: United Kingdom
Online Status: Offline
Posts: 5
Quote colinh10 Replybullet Topic: "Or IF" function error
    Posted: 17 Jan 2012 at 12:06am
Hi
 
I have been trying to create an addition to a crystal formula and cannot get it to work, the formula i  have tried is as follows:
 

If {'GPD_Data_'.Deal No}= [0000,9452,9427] and {'GPD_Data_'.Saving Accepted ?} <> ["1-Accepted","Unknown"] then 0 else {'GPD_Data_'.% Charges in GBP} or if {'GPD_Data_'.Deal No}= [9281] and {'GPD_Data_'.Saving Accepted ?} = ["13-Itinerary Changed,6-Cancelled"] then 10 else {'GPD_Data_'.% Charges in GBP}

The text in red is the additional function I want to perform the formula before this works ok.

 

I am using Crystal 10 Can anybody ssee my problem?
Many Thanks
Colin
IP IP Logged
FrnhtGLI
Senior Member
Senior Member
Avatar

Joined: 22 May 2009
Online Status: Offline
Posts: 347
Quote FrnhtGLI Replybullet Posted: 17 Jan 2012 at 2:07am
Try:

If {'GPD_Data_'.Deal No}= [0000,9452,9427] and {'GPD_Data_'.Saving Accepted ?} <> ["1-Accepted","Unknown"]
     then 0
          else

if {'GPD_Data_'.Deal No}= [9281] and {'GPD_Data_'.Saving Accepted ?} = ["13-Itinerary Changed,6-Cancelled"]
     then 10
          else {'GPD_Data_'.% Charges in GBP}

|< /\ '][' ( )
IP IP Logged
colinh10
Newbie
Newbie
Avatar

Joined: 17 Jan 2012
Location: United Kingdom
Online Status: Offline
Posts: 5
Quote colinh10 Replybullet Posted: 17 Jan 2012 at 2:23am
Thank you seems to have done the trick!
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.016 seconds.