I’m new here and I wanted to get some help solving an Access SQL data merging problem.
Actually I would like to turn this
Customer Comment
James Good
James Bad
James Good
James Ugly
into this :
Customer Comments
James Good, Bad, Good, Ugly
I need To concatenate all the comments of the same customer into one field without VBA because I’m executing the query with PHP
Thanks
Well… I know how to get the Comments concatenated properly, but I’m not sure how to pull the customer. I’m also not sure if this will work in Access, because Access doesn’t support stored procs.
I’m guessing you’ll have to do this for more than one customer, but all I can think to do is use a CURSOR for each customer, but I don’t know if Access supports cursors at the moment.
Honestly, I think you’re stuck doing this in PHP.
Then simply loop through the recordset and when the Customer changes, reset the Comments variable for the next customer.