Make Informed Decisions
Sunday May 20th 2012

Case statement in Crystal Reports

This example is based on Customer table in Northwind Database. We utilized the Case statement for information on Continent in hwich customers are located,
Case statement is easy to understand and maintain.

Select {Customers.Country}
case “germany”,”france” ,”Finland”,”denmark”,”Austria”,”belgium”,
“Italy”,”Poland”,”Norway”,”spain”,”Portugal”,”Sweden”,”Switzerland”,
“UK”:
“Europe”
Case “Argentina”,”Brazil” ,”Mexico”,”Venezuela”:
“South America”
Case “USA”,”Canada” :
“North America”

Reader Feedback

2 Responses to “Case statement in Crystal Reports”

  1. [...] nested “if statements”, creating this type of complicated formula can be avoided by using Select Case Statement [...]

  2. [...] “if statements”, creating this type of complicated formula can be avoided by using Select Case Statement [...]

Leave a Reply