Show values from different records in one field

  • Thread starter Thread starter Hallgeir
  • Start date Start date
H

Hallgeir

I have a table looking like this:
Code Value
1 A
1 K
2 A
2 B
2 L
2 J

I need my query to look like this:
Code Value
1 A, K
2 A, B, L, J

Can this be done, and do anyone have any suggestions on how it could be
solved?

Thanks!
Hallgeir
 
Duane Hookom said:
There is a generic concatenate function with samples at
http://www.rogersaccesslibrary.com/OtherLibraries.asp#Hookom,Duane.


Thank you, Duane! I really appreciate your answer. Your concatenate function
was exactly what I was looking for and I would not in a lifetime manage to
do that fuction myself (well, maybe in a liftetime :-)). I also think you
raise the value of your function by showing how to use both ado and dao. I
learned much from that.

Regards
Hallgeir
 
Glad it helped you. I had just written the DAO code and someone else (being
helpful) provided the ADO which I then learned from and included.
 
Back
Top