Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Left Outer Join Problem

Status
Not open for further replies.

elaineva

Programmer
Nov 14, 2002
35
US
I have linked Table A left link to Table B. Report Record Selection formulas from Table A produce the correct results (i.e.Record from Table A without matching Record from Table B) - but when I add a selection formula using Table B - it appears to loose the left join and I no longer get records from Table A without matching Table B record. What am I doing wrong??
 
You can't apply a selection to table B without nullifying the left outer join. It becomes an equal join so that you will get only records in table A that match in table B. Do you need to select on table B? There may be another way to accomplish what you want.
 
Yes, I do need to select on Table B, as well as Table A. Any help on solving this problem would be greatly appreciated. Thanks Infobabe.
 
Options that I see.

Use a subreport to pull info from table B.

Expand the selection criteria for table B so that every record in A will have at least one qualifying match in B.

Eliminate the selection on table B completely, pulling all B records, and then suppress the ones that you don't want to see.
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top