AccessNewbie73
New member
- Local time
- Today, 03:51
- Joined
- Dec 8, 2009
- Messages
- 5
I am working on creating something to support trainings. I'd like to be able to send an email to the person leading the training with the list of the training participants that have been assigned to the training. To do this I need a single record with the training information that I can then link to the list of assigned participants. I'd like to be able to take Table A below and produce a query that has a single row with the TrainingSessionID and as many columns in the output query as there are rows in the table below. The trick is that the number of rows will change - some sessions may have as few as two participants and others could have as many as 15 or so. I've attached a sample database with the table containing the data set in Table A below. Much thanks for any assistance as I am stumped on this one.
TableA
TrainingSessionID ParticipantName ParticipantAdded
1 Smith, Joe (1234) 5/4/16 15:30
1 Jones, Mike (3456) 5/4/16 15:48
1 Johnson, John (4567 5/4/16 23:50
Column A above is the same for each record in the table. Column C (while not necessary for the output query) has unique values for each record if this is useful. How do I "convert" the above table to create a query like what is displayed below? Keeping in mind the number of rows in the above table is unknown (it may be between 2 - 15 records.
Desired Output
TrainingID Name1 Name2 NameN
1 Smith, Joe (1234) Jones, Mike (3456) Johnson, John (4567)
TableA
TrainingSessionID ParticipantName ParticipantAdded
1 Smith, Joe (1234) 5/4/16 15:30
1 Jones, Mike (3456) 5/4/16 15:48
1 Johnson, John (4567 5/4/16 23:50
Column A above is the same for each record in the table. Column C (while not necessary for the output query) has unique values for each record if this is useful. How do I "convert" the above table to create a query like what is displayed below? Keeping in mind the number of rows in the above table is unknown (it may be between 2 - 15 records.
Desired Output
TrainingID Name1 Name2 NameN
1 Smith, Joe (1234) Jones, Mike (3456) Johnson, John (4567)