Simple Query Needed

ac916

New member
Joined
Jul 29, 2006
Messages
3
Programming Experience
Beginner
Hi,
I have data that I imported into access (Table1). Basically, the file shows two values with Header, Component. I need to group the Component together with a delimiter & (or any symbol) when the header is the same.
For example of what I have:
Table1
Field 1 – Header
Field 2 - Component
FG1 | SA1
FG1 | SA2
FG1 | CO1
FG2 | SA3
FG2 | CO2
What I am trying to get is
Table2
Field 1 – Header
Field 2 - Join Component
FG1 | SA1&SA2&CO1
FG2 | SA3&CO2
Thanks
Andrew
 
Last edited by a moderator:
you cannot perform this kind of operation without some very convoluted, weird sql particular to the database vendor. I dont work with MS Access, but from what I know of it, it would be faster to do this operation in code.

A better question might be why do you need to do this?
 
Hi CJARD,

I need to group by the header to get all component in one line.
It can be

FG1 | SA1 SA2 CO1
FG2 | SA3 CO2

Thanks.
 
Given that you have re-iterated the question, I can only re-iterate what I said before. I have, of course, chosen not to repeat myself as my advice remains the same. Sorry
 
Back
Top