Thanks for pointing me in the right direction. I finally got the code to work thanks to your suggestions. Ken