Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Heading/parameter help Post Reply Post New Topic
Author Message
Yume
Newbie
Newbie
Avatar

Joined: 29 Nov 2007
Location: United Kingdom
Online Status: Offline
Posts: 11
Quote Yume Replybullet Topic: Heading/parameter help
    Posted: 29 Sep 2008 at 5:47am
I have created a report which enables you to choose certain departments to view its income statement with the parameter {?Departments}. It allows you to choose more than one department in the select screen and it will shows both departments figures in one column. However I created a formula to show say' if {?department}='10' then 'ASTGY' if else blah blah' for the heading of the report but it doesn't like it if there is more than one department being selected.
 
I'm trying to change the formula to say if {?department} is 10 AND 11 then the heading will say 'ASTGY and Marines' as the string. Did try using 'if {?department} = '10' and '11' then 'ASTGY and Marines' but doesn't like it. Is this possible or should I change the actual parameter?
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 29 Sep 2008 at 7:17am

Hi,

Try using IN i.e.

If{?department} in ['10','11'] Then 'ASTGY and Marines'

Cheers
Rahul
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.016 seconds.