Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Dynamic Name lable Post Reply Post New Topic
Author Message
9south
Newbie
Newbie
Avatar

Joined: 02 Dec 2011
Location: United States
Online Status: Offline
Posts: 2
Quote 9south Replybullet Topic: Dynamic Name lable
    Posted: 25 Apr 2012 at 5:48am
Hi, I have a request to make a conditional or dynamic label
How to i do that, what would the formula look like.
On one report the mane will change based on multiple fields in the report
The second request is to reflect the date range selected in the title.

Thanks in advance

Edited by 9south - 25 Apr 2012 at 5:49am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 27 Apr 2012 at 7:14am
your formula would something like:
 
if {table.field} = something then
"xxxx"
else if {table.field} = somethingElse then
 "yyyy"
 
 
Crystal reports will display the last string 'displayed' in a formula. You can contenate / convert / do what you want.
 
your 2nd request would be something like:
totext({?start}, "MM/dd/yyyy") + " - " + totext ({?end}, "MM/dd/yyyy")
 
HTH
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.032 seconds.