Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: modifying only selected displayed results Post Reply Post New Topic
Author Message
debmac
Newbie
Newbie


Joined: 26 Apr 2009
Location: Australia
Online Status: Offline
Posts: 12
Quote debmac Replybullet Topic: modifying only selected displayed results
    Posted: 12 May 2009 at 7:52pm
Hello,

the result for a report I'm writing looks like:
Region                                                              Data
Interstate -                                                       xxx
NSW - Other - give details in notes -                xxx
Overseas -                                                        xxx
Sydney - Inner                                                  xxx
Unknown - Information not collected                xxx

I would like to modify the region data to show as just NSW and Unknown, and the rest leave as they are.

I'm using a formula:

if {table.field} = "UNKNOWN - information not collected"
then REPLACE({table.field}, "UNKNOWN - information not collected", "UNKNOWN")
else

if {table.field} = "NSW - Other - give details in notes" then
REPLACE({table.field}, "NSW - Other - give details in notes", "NSW")

How can I finish this formula toleave the other regions untouched? At the moment it only displays the two modified regions.

thanks
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 13 May 2009 at 6:47am
add to the end:
 
else
{table.field}
IP IP Logged
debmac
Newbie
Newbie


Joined: 26 Apr 2009
Location: Australia
Online Status: Offline
Posts: 12
Quote debmac Replybullet Posted: 14 May 2009 at 6:27pm
beautiful. thanks!
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.