Skip to Content
author's profile photo Former Member
Former Member

Replacing Null Values With Text

Hi,

I'm new to Crystal Reports 2008 and have what I hope is a simple query.

I have created a report that pulls it's data from an SQL DB (Our Helpdesk Package) and some of the results are blank but can still be clicked on to drill down.

Is there a simple way of replacing any blank values received with some text....let's say "Not Set" or something like that.

Many thanks in advance.

Matt

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2010 at 08:23 AM

    You can write a formula in Crystal Reports to check whether it is null or not and display the required text accordingly

    if  (isnull({dbvalue}) or ({dbvalue} ='')) then 
           "Display the required text"
    else
           {dbvalue}
    

    I hope this is what you required.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.