I have a recordset like this:
row1 = Type1, partid, partname
row2 = Type2, partid, partname
row3 = Type2, partid, partname
I want my output to be like this:
Type1: partid partname
Type2: partid partname, partid, partname
or
Type2: partid partname, partid, partname
Type1: partid partname
(depending on how the sort works out)
I have my results sorted by the Type value. I may or may not get same Types in a result, but if so the result is required to be printed as above.
I'm using .getRows() to get the recordset into an array.
I can't for the life of me figure out how to decide in the loop whether to print a break tag or a comma.