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
JodiePAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

if isnull(totext(field)) then 'Nothing Here' else totext(field)
0
mlmccCommented:
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
0
wykabryanCommented:
A bad habit of mine to convert blog and memos to text first.  Thanks for the heads up on the CR8.5 limit.
0
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

JodiePAuthor Commented:
mlmcc:

where do u add the isnull() bit?
0
JodiePAuthor Commented:
i m only using the crystal 8.5, i tryed adding it o tthe sql statement but it desapears ?
0
mlmccCommented:
Where you add it depends on what you are trying to do when testing for null.

It can go in a formula as suggested above, in the select expert, or in a suppression formula.

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JodiePAuthor Commented:
it worked for me in teh supression formula cheers
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.