Crystal Reports - problem displaying informationwith common fields

Posted on 2014-02-24
Last Modified: 2014-02-25
I'm having a problem getting a particular field to display properly.  There are two tables and her is the issue:



The tables are linked:
table1.original_original_vendor_id ----> table2.vendor_id (full outer join)
table1.vendor_to_send ----> table2.vendor_id (full outer join)

I'm using full outer joins because there is not always data to populate each record.  Sometimes they are blank and that's okay.

The report correctly displays both table1.original_original_vendor_id  and table1.vendor_to_send, but when I drop in table2.vendor_name, nothing is displayed.

How can I get the table2.vendor_name to display when it is linked to both table1.original_original_vendor_id  and table1.vendor_to_send?
Question by:GStoner
  • 4
  • 3
LVL 100

Accepted Solution

mlmcc earned 500 total points
ID: 39883298
You can't unless there are records where both table1.original_original_vendor_id   and table1.vendor_to_send have the same value.

You are linking to 1 record in table2 on a single field.

I think what you want is to add table 2 in twice and link it once to each table1 value.

You end up with 2 copies of table2 table2 and table2_1

table1.original_original_vendor_id ----> table2.vendor_id (full outer join)

table1.vendor_to_send ----> table2_1.vendor_id (full outer join)


Author Comment

ID: 39883406
table1.original_original_vendor_id   and table1.vendor_to_send  do have the same values.

I did not know you could add a table twice as an alias.  I followed that suggestion and liked them separately and the report works fine.

Once again - thank you for your help and quick response.

Author Comment

ID: 39885496
I've requested that this question be closed as follows:

Accepted answer: 0 points for GStoner's comment #a39883406

for the following reason:

See my last comment.
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

LVL 100

Expert Comment

ID: 39883888
Why accept your comment when my comment answered the issue.


Author Comment

ID: 39885492
I accidentally selected my response instead of the actual solution.  Please cancel the close request so that I can choose the proper accepted answer.  Thanks

Author Closing Comment

ID: 39885497
Thanks for your help.
LVL 100

Expert Comment

ID: 39885689
No problem.  That is one reason the closure like that has a waiting period.


Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Hi, In my previous Article  ( discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question