Guys, sorry for the late reply (been out of office). Have just checked out the code Paul posted and it works like a dream! I now just need to get my head fully around it so I can add a few bells and whistles.
Thanks so much for your replies, especially Paul.
I'll post my questions with some proper sample code next time!
Nick