Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Display data with blank records Post Reply Post New Topic
Author Message
rlivermore
Groupie
Groupie


Joined: 27 Sep 2012
Online Status: Offline
Posts: 70
Quote rlivermore Replybullet Topic: Display data with blank records
     Posted: 09 Nov 2012 at 5:32am
Running CR 10 Pro with a SQL 2008 database
 
Got a report that is working well, it has a selection criteria so that it prints specific records (tblRep.Rep) but also need it print when the Rep record is also null.
 
Example data:
Ticket   Date       Project   Rep   Sell Price
125      11-1-12  101        Bob   $205
203      11-2-12  105        Suzy  $34
204      11-2-12  108                 $56
208      11-3-12  110        Bob   $512
 
Selection formula says only print data where Rep=Bob data (Tickets 125 & 208) but would also like to print the blank Rep data as well (Ticket 204).
 
Thoughts on how to accomplish this would be greatly appreciated!
IP IP Logged
shanth
Groupie
Groupie


Joined: 06 Aug 2012
Location: United States
Online Status: Offline
Posts: 75
Quote shanth Replybullet Posted: 09 Nov 2012 at 6:00am
Write a Formula in place of Rep:
Rep in ['Bob', ' ']
IP IP Logged
rlivermore
Groupie
Groupie


Joined: 27 Sep 2012
Online Status: Offline
Posts: 70
Quote rlivermore Replybullet Posted: 09 Nov 2012 at 6:23am
Yep, I thought would do the trick too but no dice. Must be something else that's preventing blanks from showing, thanks anyways.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Nov 2012 at 11:49am
isnull(rep) or rep='bob'
IP IP Logged
rlivermore
Groupie
Groupie


Joined: 27 Sep 2012
Online Status: Offline
Posts: 70
Quote rlivermore Replybullet Posted: 12 Nov 2012 at 5:22am
I reversed the formula and it's working now :)
 
({tblServiceOrders.RepToCredit} = 0 or
{tblReps.LastName} in ["hart", "smith"])
IP IP Logged
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