Link to home
Start Free TrialLog in
Avatar of JodieP
JodieP

asked on

How to check if a BLOB is null

Can someone please describe in a step by step way how to check if a BLOB is null?
Im using Crystal 8.5
Thanks
Avatar of wykabryan
wykabryan
Flag of United States of America image

you will need to convert to text and then do a check.  

if isnull(totext(field)) then 'Nothing Here' else totext(field)
Avatar of Mike McCracken
Mike McCracken

WHy the need to convert it to text
ALso CR8.5 cannot return more than 254 characters from the formula so converting the blob to text is likely to cause an error of string too log.

What do you want displayed if the field is NULL?

To test if it is NULL you should be able to simply use

   IsNull({YourBlobField})

mlmcc
A bad habit of mine to convert blog and memos to text first.  Thanks for the heads up on the CR8.5 limit.
Avatar of JodieP

ASKER

mlmcc:

where do u add the isnull() bit?
Avatar of JodieP

ASKER

i m only using the crystal 8.5, i tryed adding it o tthe sql statement but it desapears ?
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JodieP

ASKER

it worked for me in teh supression formula cheers