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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing for NULL 1

Status
Not open for further replies.

mattyboy2000

Programmer
Jul 31, 2002
129
0
0
GB
I am using Crystal Reports for VB.NET and have alittle problem.

I am conditionally supressing two labels. One has a tick and the other is a cross. the code i am using is:

if {customer.ACCT_STAT} = 'S' then true else false
'Cross

if {customer.ACCT_STAT} <> 'S' then true else false
'Tick

the problem I have is that the Tick is still shown if the value in {customer.ACCT_STAT} is NULL. Is this a problem with CR coping with NULL or am I doing something stupid??

Matt
 
Sorry,
I would never say CR is stupid.
CR handles .null. exactly and you should do the same.

if not isnull({customer.ACCT_STAT}) and {customer.ACCT_STAT} = 'S' then true else false
'Cross

if not isnull({customer.ACCT_STAT}) and {customer.ACCT_STAT} <> 'S' then true else false
'Tick

Good luck,
Ralph
 
Top man!!!!

I owe you a pint!

Matt [thumbsup]

P.S. Crystal Reports ROCKS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top