Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Using AND in crystal report Post Reply Post New Topic
Author Message
a4chan
Newbie
Newbie
Avatar

Joined: 07 Aug 2010
Location: United States
Online Status: Offline
Posts: 21
Quote a4chan Replybullet Topic: Using AND in crystal report
    Posted: 07 Aug 2010 at 9:27am
Hello every one,
 
I have encountered a problem while working on crystal reports.I have a sample table with the following data
 
TID Date Item
T100 8/1/2010 Laptop
T100 8/1/2010 Desktop
T101 8/1/2010 Laptop
T102 8/1/2010 Desktop
T103 8/2/2010 Laptop
T103 8/2/2010 Desktop
T104 8/2/2010 Laptop
 
I need the data when a person bought laptop & desktop on the sameday i,e the rows that are in green only .I used a formula in the record select but its not working,it is returning no rows.Can any one please help me to resolve this issue ?
 
Formula :
table.date in date() to date() and table.item = "laptop" and table.item = "Desktop"
 
Thanks


Edited by a4chan - 08 Aug 2010 at 6:44am
a4chan
IP IP Logged
Emir_W
Senior Member
Senior Member
Avatar

Joined: 25 Apr 2010
Online Status: Offline
Posts: 228
Quote Emir_W Replybullet Posted: 08 Aug 2010 at 12:01am
table.date in date() to date() and (table.item = "laptop"   OR   table.item = "Desktop")
 
 
 
hope it help.
 


Edited by Emir_W - 08 Aug 2010 at 12:07am
Emir W
IP IP Logged
a4chan
Newbie
Newbie
Avatar

Joined: 07 Aug 2010
Location: United States
Online Status: Offline
Posts: 21
Quote a4chan Replybullet Posted: 08 Aug 2010 at 6:39am
Thank you for your help,I really appreciate it.But it will not work bcos that query will give not only when a person bought both laptop and desktop but also when a person buy either laptop or desktop.
 
All I need is only when a person bought both " laptop and desktop "
a4chan
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.