Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Help With If Else and Then Post Reply Post New Topic
Author Message
belfane
Newbie
Newbie


Joined: 18 Apr 2013
Online Status: Offline
Posts: 21
Quote belfane Replybullet Topic: Help With If Else and Then
     Posted: 04 Jun 2014 at 6:18am
I have a table that shows up on my report with a number 6 or number 7. On the report when the numbers come up I want them to show as words, IE 6 would be "sunshine" and 7 would be "gloomy".

This is what I've been working on. Is there a way to do this? Would somebody be able to help me with the formula?

if {table1.table1} = 6 then "sunshine" else "gloomy"

Thank you.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 04 Jun 2014 at 6:53am

if {table1.table1} = 6 then "sunshine" else

if {table1.table1} = 7 then "gloomy"
 else  if ...
IP IP Logged
belfane
Newbie
Newbie


Joined: 18 Apr 2013
Online Status: Offline
Posts: 21
Quote belfane Replybullet Posted: 05 Jun 2014 at 2:46am
Thank you for your help DBlank.

Edited by belfane - 05 Jun 2014 at 3:32am
IP IP Logged
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