Hi all,
it's been a while since I've been on here, but I'm having an issue with what I think is a cartesian product problem, as I'm dealing with a "many" relationship
Basically, for a report, I'm trying to have a single page for each contact with ALL of their phone numbers on this single page.
The query I currently have, displays a record for each phone number so that there are multiple entries for some contacts.
I've attached the print screens of the output and design for the query below, and also the SQL code.
What I NEED, is to be able to return one record with all the telephone numbers in one record under the heading of the contact so that there is only 1 record per contact. If you catch my drift...
Output:
Design:
SQL Code:
I look forward to hearing replies!!!
Sometimes I hate the implications of normalisation.
Thank you in advance.
it's been a while since I've been on here, but I'm having an issue with what I think is a cartesian product problem, as I'm dealing with a "many" relationship
Basically, for a report, I'm trying to have a single page for each contact with ALL of their phone numbers on this single page.
The query I currently have, displays a record for each phone number so that there are multiple entries for some contacts.
I've attached the print screens of the output and design for the query below, and also the SQL code.
What I NEED, is to be able to return one record with all the telephone numbers in one record under the heading of the contact so that there is only 1 record per contact. If you catch my drift...
Output:

Design:

SQL Code:
Code:
SELECT qryContact.idsContactID, tblTelNo.idsTelNoID, tblTelNo.lngzTelNoType
FROM qryContact LEFT JOIN (tblTelNoType RIGHT JOIN (tblTelNo RIGHT JOIN tblContactTelLink ON tblTelNo.idsTelNoID = tblContactTelLink.lngzTelNoID) ON tblTelNoType.idsTelNoTypeID = tblTelNo.lngzTelNoType) ON qryContact.idsContactID = tblContactTelLink.lngzContactID;
I look forward to hearing replies!!!
Sometimes I hate the implications of normalisation.

Thank you in advance.