I am trying to create a query that will pull data from a table and also concatenate a product description field, should a particular incident have more more than one record with a product. For Example..
Incident# Product Desc Product Number
1 Software 12
1 Hardware 14
1 OS 11
2 Software 12
what I want to create is a query that will pull out the data in this format, basically grouping by the Incident#, and creating a new field called Revised Product Description that will combine the diffetent product descriptions for a like incident# into one field, such as
1 Software, Hardware, OS
2 Software
etc..
Not all records have more than one product so currently in my query I have it pulling over a count of the product desc fields, but I would like to incorporate the count to help format the new description field, so that it knows if the count is 3, it needs, to add the first, then a , and then a second comma. This later part is not so important, but any help would be appreciated.
Thanks,
SM
Incident# Product Desc Product Number
1 Software 12
1 Hardware 14
1 OS 11
2 Software 12
what I want to create is a query that will pull out the data in this format, basically grouping by the Incident#, and creating a new field called Revised Product Description that will combine the diffetent product descriptions for a like incident# into one field, such as
1 Software, Hardware, OS
2 Software
etc..
Not all records have more than one product so currently in my query I have it pulling over a count of the product desc fields, but I would like to incorporate the count to help format the new description field, so that it knows if the count is 3, it needs, to add the first, then a , and then a second comma. This later part is not so important, but any help would be appreciated.
Thanks,
SM