Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Parameter Post Reply Post New Topic
Author Message
jans78
Newbie
Newbie


Joined: 02 Dec 2007
Online Status: Offline
Posts: 1
Quote jans78 Replybullet Topic: Parameter
    Posted: 03 Dec 2007 at 12:14am

I create 3 parameters...but how can i create the formula, if i want to choose 1 or 2 parameters and the others are blank.

Right now i'm using 'and' statement...how can i used 'or' statement for this parameter...
 
{NPCS_INBND_FILE_HDR.VOLSER_NO} = {?Volser} and
{STATUS.STATUS_DESC} = {?File Status} and
{NPCS_INBND_FILE_HDR.NPCS_CYCLE_NUM} = {?Initial Cycle ID}
 
let say, i want to choose Initial Cycle ID is blank and the format is number...please help me to create the formula...
 
Thank You.
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 03 Dec 2007 at 10:48am
Create multiple conditions using parentheses and put OR between them.
Here is a simplification:
({NPCS_INBND_FILE_HDR.VOLSER_NO} = {?Volser} and
{NPCS_INBND_FILE_HDR.NPCS_CYCLE_NUM} = {?Initial Cycle ID})
OR
({NPCS_INBND_FILE_HDR.VOLSER_NO} = {?Volser} and
 {?Initial Cycle ID}="")


You can get many examples of record selection formulas in Chapter 4 of my CR Encyclopedia book. I also cover this specific question in the Advanced Tutorials at the end of that chapter.

CR Encyclopedia

Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
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.016 seconds.