>Then Paste Transpose in Excel.
Okay, that's all fine and dandy, but isn't how to do this in Access the real question? I have a similar problem that I'm trying to solve. I can "view" groups in a Pivot Table, but I haven't been able to figure out how to run a query on it, since (I guess) it doesn't create any new object/table, just lets you look at it differently and use it to create a report.
This is what I have:
Class (up to 6 per group) Student (unique)
English Betty
English Freddie
English John
English Quinn
English Corin
Math Henry
Math Richard
Math Jeremy
Math Shawn
Math Andrew
Science David
Science Charles
Science George
Science Michael
Science Peter
Science Thomas
Journalism Zeke
Journalism Ian
Journalism Sasha
Journalism Victor
Journalism Daniel
Geography Jesse
Geography Nicholas
Geography Xavier
Geography Edward
Geography Kyle
Geography Patrick
History Walter
History Jason
History Stewart
History Tyler
I want to "merge" the groups into one row:
Class Stud 1 Stud 2 Stud 3 Stud 4 Stud 5 Stud 6
English Betty Freddie John Quinn Corin
Math Henry Richard Jeremy Shawn Andrew
Science David Charles George Michael Peter Thomas
Geography Jesse Nicholas Xavier Edward Kyle Patrick
History Walter Jason Stewart Tyler
(This is a gross over-simplification of a temp table that i want to use to create an Update Query).
I've also tried using a Crosstab Query, but I also have the same problem, too many lines to create headers.
I found a post on another forum (still looking for it) that showed how to use a query to "Group by" then Total: First then Total: Last, but it only worked for 3 columns.
I am clueless with SQL. I tried to loop through with VBA, but I don't know how to reference more than 1 record at time to deal with the grouped rows.
I also tried searching on how to work with duplicate records, but they explain how to delete them.
I'm banging my head against a wall on this one. Thank you so much!