Combining data from multiple records into one record *Access
Posted: 04 Jun 2010, 12:58
Here is my problem.
I have a query that combines data from multiple fields into one field. I now need to combine all the generated fields from multiple records into one record in a query. I will then use that query in another query (yes - I know SQL is better for this but I have no idea how to do it in SQL)
EG:
Query Structure is as follows:
[Agent code] [CPDActivID] [Date of Advice] [Date of Int Serv] [Date of Serv Super] [Experience] [Process Flag]
The fields that I am interested in are [Agent code] and [Experience]
The query is called qryFSBExperience
Each agent would have one or more records listing the experience. I need to combine them in a query that would only contain [Agent code] and [Experience] to look something like this:
[Agent code] [Experience]
1.................1/2/02022002/01032004//
1.................1/12//01012000///
2.................1/2/01091999/03032001/21092003
2 .................1/7//03071995///
3................. ////
should become
[Agent code] [Experience]
1 .................1/2/02022002/01032004//;1/12//01012000///
2 .................1/2/01091999/03032001/21092003;1/7//03071995///
3 .................////
I know it has to be done in a Conc module (concatenate) but I am not getting it right.
Please help - my knowledge of VBA is dangerous.
I have a query that combines data from multiple fields into one field. I now need to combine all the generated fields from multiple records into one record in a query. I will then use that query in another query (yes - I know SQL is better for this but I have no idea how to do it in SQL)
EG:
Query Structure is as follows:
[Agent code] [CPDActivID] [Date of Advice] [Date of Int Serv] [Date of Serv Super] [Experience] [Process Flag]
The fields that I am interested in are [Agent code] and [Experience]
The query is called qryFSBExperience
Each agent would have one or more records listing the experience. I need to combine them in a query that would only contain [Agent code] and [Experience] to look something like this:
[Agent code] [Experience]
1.................1/2/02022002/01032004//
1.................1/12//01012000///
2.................1/2/01091999/03032001/21092003
2 .................1/7//03071995///
3................. ////
should become
[Agent code] [Experience]
1 .................1/2/02022002/01032004//;1/12//01012000///
2 .................1/2/01091999/03032001/21092003;1/7//03071995///
3 .................////
I know it has to be done in a Conc module (concatenate) but I am not getting it right.
Please help - my knowledge of VBA is dangerous.