Thanks,
that was very helpful and now works a treat.
I've got a lot to learn buts it's been fun so far