I recently addressed this issue while working a similar problem for someone. See this thread. I have code posted and later script output posted. You will need to adjust the code slightly to output all unique values and not just the five lowest.

http://www.kixtart.org/ubbthreads/showfl...3&fpart=all
_________________________
Home page: http://www.kixhelp.com/hb/