Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9063

Re: Trying to Display User ID as Name (Crystal Reports 10)

$
0
0

This is actually not too difficult.

 

1.  Add both tables to the report.

 

2.  Create a link from ReceivedID in Packages to UserID in Users.

 

3.  Add a second copy of the Users table to the report.  When you do this, Crystal will show a warning and ask if you want to "alias" the table.  The table will then be added to the report with the name "Users_1".

 

4.  Create a link from DeliveredID in Packages to UserID in Users_1.

 

5.  In your report, use the data from Users to display the Received name and the data from Users_1 to display the Delivered name.

 

Note:  If there's any chance that ReceivedID or DeliveredID will be null, you'll need to make the link from Packages to the appropriate User table a "Left Outer" join.  Do this by right-clicking on the link, selecting "Link Options", and setting the Join Type to Left Outer.

 

-Dell


Viewing all articles
Browse latest Browse all 9063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>