Question Crystal Report - Linked table

Arg81

Well-known member
Joined
Mar 11, 2005
Messages
949
Location
Midlands, UK
Programming Experience
1-3
Good afternoon

I'll try to explain this as best I can.

Have a report that shows main table fields and then "links" to lookup tables
I have 2 fields "Technician A" and "Technician B"
In my DataSet, there are 2 datatables, TechA and TechB (both with EmployeeID, EmployeeName)

Technician A is always going to have a value. B will only be selected for larger projects.

In Database Expert, I have linked TechnicianA to EmployeeID (TechA) and TechnicianB to EmployeeID (TechB)

On the report, I have dragged EmployeeName from both dataTables.

ISSUE
If the project DOES have a value set for EmployeeB, the report loads OK.
If the project DOES'NT have a value set for EmployeeB, the report loads Blank.

If I remove EmployeeName from the report (TechB), the report loads OK.


There's obviously an issue with the link, any ideas? I need the report to load whether or not TechnicianB has a value or not.
 
Now solved...

Left outer join is correct.

The reason for the duplication was due to me linking my CustomerID to the 2 Customer tables I had, both of which had 2x Primary Keys.
Instead I needed to link the main table to my first customer table on CustomerID, then link this to the second customer table on CustomerID.
 
Back
Top