Thomas,
Thanks for your reply . I thought my solution was working but I determined later on the results were not consistent .
I tried your solution and I believe it is much better.
Thanks again for your technique.
Hopefully I can remember it for the next time.
Paul