Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Tips and Tricks
Message Icon Topic: Display name vs number in header Post Reply Post New Topic
Author Message
sneveu
Newbie
Newbie


Joined: 30 Aug 2011
Location: United States
Online Status: Offline
Posts: 2
Quote sneveu Replybullet Topic: Display name vs number in header
    Posted: 07 Mar 2012 at 7:30am
I am creating a report where the user has 2 parameters to enter a range for Sales Rep.    1002 to 4500.  
I print the user selection in the header as
Sales Rep 1002 - 4500.  
 
A request has been made to instead of showing the sales rep number to instead display the name.  So they would want to see:
Sales Rep:  John Smith - Mike Johnston, where 1002 = John Smith and 4500 = Mike Johnson when selecting 1002 - 4500.
 
How can I display the names in the header?  The name does not exist in the one table I am using so I don't know how to use the parameter to link to the sales rep table to get the name.
 
Is this possible?
 
Thanks
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 23 Mar 2012 at 3:48am
you could use a subreport for each name...the subreport can link to the other table as needed.
IP IP Logged
comatt1
Senior Member
Senior Member
Avatar

Joined: 19 May 2011
Online Status: Offline
Posts: 337
Quote comatt1 Replybullet Posted: 31 Aug 2012 at 6:03am
make a sql expression

(select top 1 name from nametable a inner join
idtable b on
b.id = a.id)
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.039 seconds.