Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Multiple field formula help Post Reply Post New Topic
Author Message
j_ellemore
Newbie
Newbie


Joined: 31 May 2009
Location: United Kingdom
Online Status: Offline
Posts: 21
Quote j_ellemore Replybullet Topic: Multiple field formula help
    Posted: 02 Jul 2009 at 9:25am

Hi,

I'm putting together a change management report and need a report to display only emergency or retrospective changes. The DB has been set-up so that that there are two different true/false fields called emergency and retrospective.

I need a formula that will display records where either emergency or retrospective is set to true and not display records where both values are false.

Can anyone assist?

Many thanks

James

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 07 Jul 2009 at 8:55am
You can use an Xor statement (below is from Crystal Help)...
 
Usage

x Xor y

Value of x Value of y x Xor y

True

True

False

True

False

True

False

True

True

False

False

False

Examples

The following example is applicable to both Basic and Crystal syntax:

{Customer.SELL} Xor {Customer.GOVT_APPROVE}

Returns True if one of {Customer.SELL} and {Customer.GOVT_APPROVE} is True, and the other is False.



Edited by DBlank - 07 Jul 2009 at 8:55am
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.