Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Selecting NULL values in a case statement Post Reply Post New Topic
Author Message
Tupacmoche
Groupie
Groupie
Avatar

Joined: 04 Apr 2007
Online Status: Offline
Posts: 52
Quote Tupacmoche Replybullet Topic: Selecting NULL values in a case statement
    Posted: 04 Apr 2007 at 7:44am
Please note the following select statement
 
//Select Statement for labels used in the Consolidated Statement of earnings report.

Select {CODE_B.CODE_B} [1 to 12]
 Case "100", "150" :
  "10 Operations"
 Case "200" :
  "20 Direct Expenses"
 Case "210" :
  "21 Sales Promotion"
 Case "220" :
  "22 Sales Administration"
 Case "230" :
  "23 Marketing"
 Case "240" :
  "24 Business Development"
 Case "300" :
  "30 Administrative Expenses"
 Case "350" :
  "35 ERP Implementation Expenses"
 Case "400" :
  "40 Growth Expenses/Research & Development"
 Case "500" :
  "50 Quality"
 Case "600" :
  "60 Regulatory"
 Default :
  "Undefined Group";

There is one other case that I need to add. Unfortunitly this is a NULL value that I want to get to. There are about 33 records that are NULL in this table. So for MyFieldName that Is Null I want the case statement  to return "00 Null Value" where the field is NULL
 
Can someone tell me how to do this?  
Rob
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 04 Apr 2007 at 9:40am
Add in If Then statement at the end to catch it.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.