Thanks Leith

I only really needed the first part and it seems so simple now.

Thanks for your help

Crispie38