Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: If IsNull Then........? Post Reply Post New Topic
Author Message
BoltzGirl
Groupie
Groupie
Avatar

Joined: 22 Jan 2013
Online Status: Offline
Posts: 89
Quote BoltzGirl Replybullet Topic: If IsNull Then........?
    Posted: 08 Nov 2013 at 12:21pm
I can't figure out what I am doing wrong with my (). I want address type M1 phone number only when there is no term date, else I want R1 phone number with no term date.

ORIG WAS DOING THIS:

if ({MEMBER_ADDRESS.ADDRESS_TYPE} = 'M1') and
isnull({MEMBER_ADDRESS.TERM_DATE})then
{MEMBER_ADDRESS.HOME_PHONE_NUMBER}
else
if ({MEMBER_ADDRESS.ADDRESS_TYPE} = 'R1') and
isnull({MEMBER_ADDRESS.TERM_DATE})then
{MEMBER_ADDRESS.HOME_PHONE_NUMBER}
else
"Blank"


THEN WE TRIED THIS....

If ((IsNull ({MEMBER_ADDRESS.TERM_DATE}) and
{MEMBER_ADDRESS.ADDRESS_TYPE} = 'M1')) then
{MEMBER_ADDRESS.HOME_PHONE_NUMBER}

else

If ((IsNull ({MEMBER_ADDRESS.TERM_DATE}) and
{MEMBER_ADDRESS.ADDRESS_TYPE} = 'R1') then
"Blank"
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 08 Nov 2013 at 12:27pm
are these on the same line of data or different lines?

Formulas only work on 1 line at at time.

The line might be from different tables, but as far as seeing the results in something in like SQL Manager, it would all be on one line.

I only ask in that how can 1 field have different values, as in if the type is M1 or R1...this implies different records. Shared variables and displaying the results in the group footer make more sense.

HTH

Edited by lockwelle - 08 Nov 2013 at 12:29pm
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 08 Nov 2013 at 12:32pm
try " instead of '


{MEMBER_ADDRESS.ADDRESS_TYPE} = "M1"

Edited by kostya1122 - 08 Nov 2013 at 12:32pm
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.027 seconds.