I am sure that someone else will benefit from the code in this thread in the future, so nothing is ever a waste of time. Thanks for providing a solution.