This is not my real-work scenario but let's say that I have a table named "tbl-albums" that has the following fields:
- albumID
- artist-albums
- songlist-albums (memo field)
And I have another table named tbl-songs that has the following fields:
- songID
- albumID-song (related to the table above)
- tracknumber-song
- name-song
I need to know how to write an UPDATE QUERY that will take all the song names from [tbl-songs].[name-song] and append them to the related [tbl-albums].[songlist-albums] field, one right after the other separated by a (visible) comma , and in track order.
So let’s take U2’s album Joshua tree that has the following songs on it.
- Where the Streets Have No Name
- I Still Haven't Found What I'm Looking For
- With or Without You
- Bullet the Blue Sky
- Running to Stand Still
- Red Hill Mining Town
- In God's Country
- Trip Through Your Wires
- One Tree Hill
- Exit
- Mothers of the Disappeared
For the Joshua tree albums ID: I want [tbl-albums].[songlist-albums] field to look like this after I run the query:
Where the Streets Have No Name, I Still Haven't Found What I'm Looking For, With or Without You, Bullet the Blue Sky, Running to Stand Still, Red Hill Mining Town, In God's Country, Trip Through Your Wires, One Tree Hill, Exit, Mothers of the Disappeared.
Is there a way to take records in a table and append them into one field of a related record like that?