Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: if else construct in crystal report Post Reply Post New Topic
Author Message
hisneha2000
Newbie
Newbie


Joined: 30 Dec 2007
Location: India
Online Status: Offline
Posts: 29
Quote hisneha2000 Replybullet Topic: if else construct in crystal report
     Posted: 31 Dec 2007 at 12:55am
Please help me out with this .

I am working with ASP.net C#, I m using crystal report 10 . In crystal report i have a hyperlink field which helps in navigating across pages . I have written a code using if ..then..else construct which says if a particular field value in crystal report is null then navigate to webform1 else navigate to webform 2 . But the problem is in the syntax it dont accept null .

if ({Table.Column} )= NULL
then
webform1.aspx
else
webform2.aspx

i have also tried using "" . But nothing seems to work .

IP IP Logged
Savan
Senior Member
Senior Member
Avatar

Joined: 14 Dec 2007
Location: India
Online Status: Offline
Posts: 162
Quote Savan Replybullet Posted: 31 Dec 2007 at 2:15am
please change the syntax as below
 
if IsNull ({Table.Column}) then
webform1.aspx
else
webform2.aspx
Thanks
Savan
IP IP Logged
hisneha2000
Newbie
Newbie


Joined: 30 Dec 2007
Location: India
Online Status: Offline
Posts: 29
Quote hisneha2000 Replybullet Posted: 31 Dec 2007 at 3:13am

This doesn't work for me ....

IP IP Logged
Savan
Senior Member
Senior Member
Avatar

Joined: 14 Dec 2007
Location: India
Online Status: Offline
Posts: 162
Quote Savan Replybullet Posted: 31 Dec 2007 at 3:26am

can u type the error your are getting ?

Thanks
Savan
IP IP Logged
hisneha2000
Newbie
Newbie


Joined: 30 Dec 2007
Location: India
Online Status: Offline
Posts: 29
Quote hisneha2000 Replybullet Posted: 31 Dec 2007 at 3:30am
Got it .. It was bcoz of my property tht i had changed tht code was not working ...now things r fine .... thx a lot .....Clap
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