Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: If Parameter is "Blank" return All Post Reply Post New Topic
Author Message
vzh101
Groupie
Groupie
Avatar

Joined: 12 Feb 2015
Location: United States
Online Status: Offline
Posts: 46
Quote vzh101 Replybullet Topic: If Parameter is "Blank" return All
     Posted: 10 Apr 2015 at 12:00pm
I have a report that have 3 parameter.

1. From Date
2. To Date
3. Department

If I leave Department blank then it should return all with just the date but it is returning 0. Anyone experience this before? Is there a solution to this?

Thanks!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Apr 2015 at 3:55am
you are using 2008 or after I assume and have set the param as optional/allowing nulls?
 
table.date in ?FromDate to ?ToDate
and
(
(not(hasvalue(?Department)))
or
table.department = ?Department
)
 
 
 


Edited by DBlank - 13 Apr 2015 at 3:56am
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