Steve, thanks for the reply,

I agree its the concept that I couldn't get my head round, and your code will make a good grounding for some trials. It all seems so logical now, but last night after a long day my brain went blank

Bruce, thanks also for replying, and I'll study those links in depth a little later (have work to do now )