Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Anyone please help . Post Reply Post New Topic
Author Message
vpriyanka2001
Groupie
Groupie


Joined: 28 May 2009
Online Status: Offline
Posts: 59
Quote vpriyanka2001 Replybullet Topic: Anyone please help .
    Posted: 30 Sep 2009 at 11:12am
Getting error in formula, a constant expression is required here.
Please Help.


IIF ({UpLoad_Report_EOM;1.bornum} = 13797 or {UpLoad_Report_EOM;1.bornum} = 56700 or
    {UpLoad_Report_EOM;1.bornum} = 52635 or {UpLoad_Report_EOM;1.bornum} =52674 or
    {UpLoad_Report_EOM;1.bornum} = 57831 or {UpLoad_Report_EOM;1.bornum} = 54056 or
    {UpLoad_Report_EOM;1.bornum} = 52761 or {UpLoad_Report_EOM;1.bornum} = 44852 or
    {UpLoad_Report_EOM;1.bornum} = 21013 or {UpLoad_Report_EOM;1.bornum} = 21183 or
    {UpLoad_Report_EOM;1.bornum} = 52569 or {UpLoad_Report_EOM;1.bornum} = 52361 or
    {UpLoad_Report_EOM;1.bornum} = 20841 or {UpLoad_Report_EOM;1.bornum} = 13893 or  
    {UpLoad_Report_EOM;1.bornum} = 57684 or {UpLoad_Report_EOM;1.bornum} = 24208,
"YES","NO" )

Edited by vpriyanka2001 - 09 Oct 2009 at 8:37am
IP IP Logged
Jyothi Yepuri
Senior Member
Senior Member


Joined: 11 May 2009
Location: Australia
Online Status: Offline
Posts: 127
Quote Jyothi Yepuri Replybullet Posted: 30 Sep 2009 at 4:45pm
is {UpLoad_Report_EOM;1.bornum} number type?
did you try using IN?

Jyothi
IP IP Logged
vpriyanka2001
Groupie
Groupie


Joined: 28 May 2009
Online Status: Offline
Posts: 59
Quote vpriyanka2001 Replybullet Posted: 05 Oct 2009 at 7:48am
Yes Bornum is integer


Edited by vpriyanka2001 - 05 Oct 2009 at 8:00am
IP IP Logged
Jyothi Yepuri
Senior Member
Senior Member


Joined: 11 May 2009
Location: Australia
Online Status: Offline
Posts: 127
Quote Jyothi Yepuri Replybullet Posted: 05 Oct 2009 at 3:23pm
is IN working?

{UpLoad_Report_EOM;1.bornum} IN [13797,56700,....]

Jyothi
IP IP Logged
themessenger
Groupie
Groupie
Avatar

Joined: 15 Aug 2008
Location: United Kingdom
Online Status: Offline
Posts: 48
Quote themessenger Replybullet Posted: 07 Oct 2009 at 4:08am
I'll second Jyothi - use an 'IN'

//Crystal Syntax
IF {UpLoad_Report_EOM;1.bornum} IN [13797,56700,etc] then 'Yes' Else 'No'
Managing Director
www.allmymenus.com
IP IP Logged
vpriyanka2001
Groupie
Groupie


Joined: 28 May 2009
Online Status: Offline
Posts: 59
Quote vpriyanka2001 Replybullet Posted: 09 Oct 2009 at 7:44am
HERE it says a CONSTANT EXPRESSION IS REQUIRED HERE.

IF {UpLoad_Report_EOM;1.bornum}
IP IP Logged
Jyothi Yepuri
Senior Member
Senior Member


Joined: 11 May 2009
Location: Australia
Online Status: Offline
Posts: 127
Quote Jyothi Yepuri Replybullet Posted: 11 Oct 2009 at 7:37pm
can you check datatype of this field in SP?
It should work fine if its a integer.


Jyothi
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.