Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Conditional Filtering Post Reply Post New Topic
Author Message
cathyganda
Newbie
Newbie


Joined: 16 Apr 2012
Online Status: Offline
Posts: 4
Quote cathyganda Replybullet Topic: Conditional Filtering
    Posted: 22 Apr 2012 at 10:35pm
I super need your help!

I want to filter based on the ff:

NumberOne is equal to either one of the following: 100, 200, 300, 400

OR

NumberTwo is equal to either one fo the following:100, 200, 300, 400

AND

FieldB is equal to 888

AND

DateOne is in last full month.

i have this so far:

{A.FieldB} = "888"
and
{A.DateOne} in LastFullMonth
and
{A.NumberOne} in [100.00, 200.00, 300.00, 400.00]
or
{A.NumberTwo} in [100.00, 200.00, 300.00, 400.00]

It's not working :'( i dont know how to do "OR" in filter.

Please please help me

Thank You!
IP IP Logged
rkrowland
Senior Member
Senior Member
Avatar

Joined: 20 Dec 2011
Location: England
Online Status: Offline
Posts: 259
Quote rkrowland Replybullet Posted: 22 Apr 2012 at 11:21pm
{A.FieldB} = "888" 
and
{A.DateOne} in LastFullMonth
and
({A.NumberOne} in [100.00, 200.00, 300.00, 400.00]
or
{A.NumberTwo} in [100.00, 200.00, 300.00, 400.00])
 
Enclosing the OR statement in brackets should fix it.
 
Regards,
Ryan.


Edited by rkrowland - 22 Apr 2012 at 11:22pm
IP IP Logged
cathyganda
Newbie
Newbie


Joined: 16 Apr 2012
Online Status: Offline
Posts: 4
Quote cathyganda Replybullet Posted: 22 Apr 2012 at 11:33pm
Thank you Ryan! :)
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.