Thanks boops. That's exactly the kind of code I wanted. I will try it and see if it will work.