Hi Dominykas

Thank you very much for this. I got it all working and it does excatly what we want.

Now the client has changed the design so I have to do it all again but I think I can manage on my own using what you provided – thank you very much.

I have another request which relates to my first post so will respond there – thank you again for all of your help with this.