Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: LookupTable Post Reply Post New Topic
Author Message
Schugs
Newbie
Newbie


Joined: 08 Aug 2012
Online Status: Offline
Posts: 36
Quote Schugs Replybullet Topic: LookupTable
    Posted: 14 Aug 2012 at 10:48am
Hello,
i am creating a class attendance sheet that the table for the class has only 2 field for instructors. these fields just hold the ID number of an instructor that then is linked to an instructor look up table that contains the list of instructors.

in the report header i need to have both names listed. How can i pull the fname/lname fields from the instructor table based on the ID in the class schedual table?

Edited by Schugs - 14 Aug 2012 at 10:48am
IP IP Logged
Schugs
Newbie
Newbie


Joined: 08 Aug 2012
Online Status: Offline
Posts: 36
Quote Schugs Replybullet Posted: 14 Aug 2012 at 11:10am
This guy i found had a similar issue, but cant see any responses without paying for the site... lame....
--------------------------------------------------------
I have 2 tables one contains several fields two of which correspond to a key from a second table that contains a field called name. When I create 2 links to the same field and and the name field to my report I do not get the name printed in every record if I delete one link then I get one instance of the name printed. Here is the example below.

Primary Table      Secondary Table
rxregion --------->pkid
txregion --------->pkid
                   name
speed
I have setup both links to be left outerjoin =

Report looks like this

TO/FROM Region        TO/From Region        Speed

Secondary.name        Secondary.name        Primary.speed

---------------------
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 14 Aug 2012 at 11:28am
You'll link to the secondary table twice - once from each region field from the primary table.  When you try to add a table to your report that's already in your report, Crystal will let you know it's already there and ask if you want to alias it.  At that point it will add the table to the report with "_1" at the end of the table name.  So, if your table name is "Secondary" you'll also have "Secondary_1".  If there's any possiblity that one of the region fields will have data an the other won't, you'll want to make sure these are left outer joins from the primary to each of the secondaries.
 
-Dell
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.