Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Two criteria on one field Post Reply Post New Topic
Author Message
bjfils
Newbie
Newbie


Joined: 03 Apr 2016
Online Status: Offline
Posts: 31
Quote bjfils Replybullet Topic: Two criteria on one field
    Posted: 12 Sep 2022 at 5:12am
I need to add a selection criteria to the below and can't get the syntax to work. The issue is the other credit is for something not in the field. I need to exclude records if "xrerun" in the same field. I know I could duplicate all of the selection criteria and make "or" the last line in the current set and then repeat it all changing the below to "not like". I'd like to keep it all in one line. How do I put together that criteria?

"craft" in {Ticket.GeneralDescr} and
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 13 Sep 2022 at 3:56am
if you have multiple items that you want to exclude for a field.  The basic format is something like this not({somefield} in ('this', 'that'))

IP IP Logged
bjfils
Newbie
Newbie


Joined: 03 Apr 2016
Online Status: Offline
Posts: 31
Quote bjfils Replybullet Posted: 13 Sep 2022 at 4:02am
Can I combine that into one line with the include query I have? I want to include "craft" and exclude "xrerun" from the same field.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 14 Sep 2022 at 11:52am
It would have to be two statements ANDed together.
IP IP Logged
bjfils
Newbie
Newbie


Joined: 03 Apr 2016
Online Status: Offline
Posts: 31
Quote bjfils Replybullet Posted: 15 Sep 2022 at 3:17am
Thought that might be the case. Never hurts to ask. Thanks!
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.029 seconds.