Phil,
Actually it looks as though you did exactly understand it, in spite of me :-)
I've got all of it working now
Thanks for all your help
rhb