Solved

Access code to Loop through stacked table and consolidate into another flatened table

Posted on 2014-11-03
2
96 Views
Last Modified: 2014-11-11
Hello Experts.

I'm needing code that will loop through a stacked table and compile results into flat table that has one line for each ID

Example:

Table: StackedResults
ID     Name
1      Tom
1      Jane
1      Sue
2      Jane
2      Denise
3      Sue
3      Denise
3      Tom

Table: FlatResults
ID     Names
1       Tom, Jane, Sue
2        Jane, Denise
3       Denise, Sue, Tom

Thank you.
0
Comment
Question by:dhemple
2 Comments
 
LVL 45

Accepted Solution

by:
aikimark earned 500 total points
ID: 40419685
Use the DConcat() function described in Patrick Matthews' article.
http:A_2380-Domain-Aggregate-for-Concatenating-Values-by-Group-in-Microsoft-Access.html
0
 

Author Closing Comment

by:dhemple
ID: 40434830
Perfect solution.  thank you for pointing me in the right direction.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now