Thank you! That second piece of code solved the problem, and everything's working perfectly. I suspected it was the CFLOOP tag, and I tried various combinations with the listfind function, but not in combination with the valuelist function.
Thanks again - you're a life-saver!
Helen