I m looking for a way to string together report codes for a contact. There may be many report codes for the contact. I have been working with too many databases which have ways to do this but can't seem to find the way in access. This is probably obvious to someone working with access a lot.
Contacts Table
ContactID LastName
Contact_1 Williams
Contact_2 Smithace
ReportCodes Table
ContactID Report Code
Contact_1 NL
Contact_1 WE
Contact_1 DN
Contact_2 WE
Contact_2 DN
Want a result like:
ContactID LastName ReportCodeList
Contact_1 Williams NL,WE,DN
Contact_2 Smithace WE,DN
SELECT contact.ContactID, contact.LastName, something(contact.ContactID) AS ReportCodeList
FROM contact
RIGHT JOIN reportcodes ON reportcodes.contactID = contact.contactID
Any suggestions to get me on the right track would be appreciated.
Contacts Table
ContactID LastName
Contact_1 Williams
Contact_2 Smithace
ReportCodes Table
ContactID Report Code
Contact_1 NL
Contact_1 WE
Contact_1 DN
Contact_2 WE
Contact_2 DN
Want a result like:
ContactID LastName ReportCodeList
Contact_1 Williams NL,WE,DN
Contact_2 Smithace WE,DN
SELECT contact.ContactID, contact.LastName, something(contact.ContactID) AS ReportCodeList
FROM contact
RIGHT JOIN reportcodes ON reportcodes.contactID = contact.contactID
Any suggestions to get me on the right track would be appreciated.