Hello, I've got a question about merging/concatenating rows. There's a similar topic here: Combining Multiple Rows of one Field into One Result but I didn't know if I should hijack it. Basically, I have a single table in Access that looks like:
Name - - - Address - -Email - - - - -Comments
John Doe - 11211 - - - j2@g.com - lad
John Doe - 41541 - - - q3@g.com -asd
John Doe - 12345 - - - w2@g.com -ask
And what I basically want it to look like is:
Name - - - Address - - - Email - - - - - - - - - - - - - - - - - - - - - - - Comments
John Doe - 41541 - - - - j2@g.com, q3@g.com, w2@g.com - - lad, asd, ask
----------------------------
So I've tried this:
SELECT MAX(Table1.Address), MAX(Table1.Name), Max(Table1.Name & Table1.Email) AS emails
FROM Table1;
Similar to the solution given by kyjabber of:
1. SELECT CompanyName, Max(Concat(CompanyName,Product)) AS Products
2. FROM t_CompanyCategoriesProducts
3. GROUP BY CompanyName;
Except with & instead of Concat (because they don't have Concat in Access?), but this only seemed to produce a merging of columns, not rows:
Expr1000 Expr1001 emails
41541 John Doe John Doewqwe22@gmail.com
Which is kinda what I had expected.