Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Null Values Post Reply Post New Topic
Author Message
pgreer
Newbie
Newbie
Avatar

Joined: 10 Nov 2010
Location: United States
Online Status: Offline
Posts: 7
Quote pgreer Replybullet Topic: Null Values
    Posted: 04 Jan 2011 at 10:52am
I have a set of 4 parameters . ?StartDate, ?EndDate, ?Medical Record Number, ?Accession Number.  I want to be able to be able to enter in any parameter and the others left blank or maybe two parameters are entered or whatever the input maybe.    It does work if i enter all parameters.   I am novice at crystal reports and any help would be fantastic.  Here is the code i have:
 
(not HasValue({?Medical Record Number}) OR {PAUDIT.MR_NUM} = {?Medical Record Number}) and {PAUDIT.DATE} in {?Start Date(yyyyMMdd)} to {?End Date(yyyyMMdd)} and (not HasValue({?Accession Number}) OR {PAUDIT.ACC_NUM} = {?Accession Number})
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 04 Jan 2011 at 11:07am

maybe...

(not (HasValue({?Medical Record Number})) OR {PAUDIT.MR_NUM} = {?Medical Record Number})
and
(not (hasvalue({?Start Date}) or date({PAUDIT.DATE}) in {?Start Date} to {?End Date})
and
(not (HasValue({?Accession Number})) OR {PAUDIT.ACC_NUM} = {?Accession Number})
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.