Thanks very much for your help. Both ways worked but not wit h out errors. I eneded up finding a simple script onl;ine that does the same thing well in a different way. So i used that way after all. Thanks never the less for your help.