Any wise guys out there?
I have been trying to get this to work for hours, but lack the experience to pull it off. I have provided an example with the names of my actual table and fields.
Table name: eventlog
SELECT e.period, e.center, e.event
FROM [eventlog] as e
results in this:
Period Center Event
p1 a tv
p1 a radio
p1 a web
p1 b magazine
p1 b newsad
p1 b tv
p2 a radio
p2 a web
p2 b radio
p2 b web
Desired Format:
Period Center Event
p1 a tv, radio, web
p1 b magazine, newsad, tv
p2 a radio, web
p2 b radio, web
I have very limited experience in vba, but I think that I need a function that creates a comma delimited string. I need somthing to run in ACCESS 2002.
1) Can you provide code and let me know where to put it (where in the module?)
2) How do I modify the query listed above so that it will work with the stored function?
I tried to be specific as possible, I hope this is clear to understand. I greatly appreciate any help provided.
I have been trying to get this to work for hours, but lack the experience to pull it off. I have provided an example with the names of my actual table and fields.
Table name: eventlog
SELECT e.period, e.center, e.event
FROM [eventlog] as e
results in this:
Period Center Event
p1 a tv
p1 a radio
p1 a web
p1 b magazine
p1 b newsad
p1 b tv
p2 a radio
p2 a web
p2 b radio
p2 b web
Desired Format:
Period Center Event
p1 a tv, radio, web
p1 b magazine, newsad, tv
p2 a radio, web
p2 b radio, web
I have very limited experience in vba, but I think that I need a function that creates a comma delimited string. I need somthing to run in ACCESS 2002.
1) Can you provide code and let me know where to put it (where in the module?)
2) How do I modify the query listed above so that it will work with the stored function?
I tried to be specific as possible, I hope this is clear to understand. I greatly appreciate any help provided.