grundig1987
Registered User.
- Local time
- Today, 23:43
- Joined
- Dec 22, 2010
- Messages
- 31
Good Afternoon,
I have a group of related records which I would like to concatenate into one string - The sample data is below:
StudentID CourseID
B787878 BSB070
B787878 BSC880
B787878 BSD808
And the desired outcome would be:
B787878 BSB070, BSC880, BSD808
I have used a comma as a delimiter but to be honest anything can be used as I will be storing as an array afterwards so as long as something can be used to do this that will be fine.
This is far as I have got - I have a form with 2 text boxes. One is called Student_ID_2, and the other Text120 - Student_ID_2 takes the current users StudentID (irrelevant code) - Text120 should look up that StudentID in the table named 'Enrolments' and return all of the CourseID's, concatenated.
In text120, I have set the control source as =concatrelated("[CourseID]","[Enrolments]","[StudentID = '" & [Student_ID_2] & "'")
This does not appear to be doing anything when the Student_ID_2 text box is set to B787878.
Any suggestions?
Thanks in advance,
Mark
I have a group of related records which I would like to concatenate into one string - The sample data is below:
StudentID CourseID
B787878 BSB070
B787878 BSC880
B787878 BSD808
And the desired outcome would be:
B787878 BSB070, BSC880, BSD808
I have used a comma as a delimiter but to be honest anything can be used as I will be storing as an array afterwards so as long as something can be used to do this that will be fine.
This is far as I have got - I have a form with 2 text boxes. One is called Student_ID_2, and the other Text120 - Student_ID_2 takes the current users StudentID (irrelevant code) - Text120 should look up that StudentID in the table named 'Enrolments' and return all of the CourseID's, concatenated.
In text120, I have set the control source as =concatrelated("[CourseID]","[Enrolments]","[StudentID = '" & [Student_ID_2] & "'")
This does not appear to be doing anything when the Student_ID_2 text box is set to B787878.
Any suggestions?
Thanks in advance,
Mark