Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ISNULL test not working

Status
Not open for further replies.

kmarino

Technical User
Dec 30, 2002
17
US
I have the following nested IF statement that displays nothing instead of "(no applicable code)". The P,E,I, and W is working. Does anyone know why? I can't seem to make the ISNULL function to work in other report either.

IF {V_DEPENDENT.DEPCOBRAELIGIBLITY} = "P" then "Participating"
else
IF {V_DEPENDENT.DEPCOBRAELIGIBLITY} = "E" then "Eligibile"
else
IF {V_DEPENDENT.DEPCOBRAELIGIBLITY} = "I" then "Ineligibile"
else
IF {V_DEPENDENT.DEPCOBRAELIGIBLITY} = "W" then "Waived"
else
IF ISNULL({V_DEPENDENT.DEPCOBRAELIGIBLITY}) then "(no applicable code)"
else
{V_DEPENDENT.DEPCOBRAELIGIBLITY}
 
Try putting the isnull test first. Not quite sure why, but have seen the IsNull first suggestion before

Also try using the following:
IF {V_DEPENDENT.DEPCOBRAELIGIBLITY}="" then "(no applicable code)"
Mike

Before: After
[morning] [bugeyed]
 
Thanks Mike. I should have known enough to try those suggestions first. I just seem determined to use the ISNULL feature.

I did have to use the = "" option. Moving the ISNULL first didn't do anything.

Kathleen
 
Try length(trim({YourField}))=0 as your test. I have had to do this on occassion, especially for old btrieve databases. Software Sales, Training and Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
>I did have to use the = "" option. Moving the ISNULL first didn't do anything.

That says that your field is blank, not null. The two aren't the same.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top