Originally Posted by
Rhino373
This might be dirty and would have to be done through multiple queries but I would SUM the ascii value of the unacceptable combination then I would group by ID and unacceptable combination and take the FIRST of unacceptable combination. (This would get rid of duplicates like A,B and B,A since added together the sum of their ascii value would be the same. This would also show you the entry A,B. In your example it should return A,B; B,C and C,A I would then create a concatenate of the Left([unacceptable Combination],Instr([Unacceptable Combination],",")-1). This would grab the first letter of the result set and should give A, B, C (after you add a comma and space back in during the concatenation)