Hi all, I'm about to go on holiday for a couple of weeks so I won't be reading the list. When I get back I'll be having another look at the code I posted and trying the patches suggested. Thanks again for the useful suggestions. Best wishes, Bill.