Thank you both for taking the time to answer my question, both solutions worked.
i am using avk's solution as it suits my needs better

Thanks again

Kevin