Concatenate fields in multiple records into one record

Seadog

New member
Local time
Today, 14:39
Joined
Feb 15, 2012
Messages
2
Sample database:

Field 1 Field 2
abc x1
abc x2
abc x3
def y1
def y2
def y3
ghi x1
ghi y2
ghi y3

I would like to run a query that would consolidate Field 2 into one record so the results look like this:

Field 1 Field 2
abc x1, x2, x3
def y1, y2, y3
ghi x1, y2, y3

Any ideas?
 
Crosstab Query.

Doesn't concatenate them per se but pivots the data to give an output in that format.
 
Perhaps this is the sort of thing you are looking for?
 
I personally find the code found here named MakeCSV() to be easier to use and more flexible --- Not that I am biased or anything :)
 

Users who are viewing this thread

Back
Top Bottom