Thanks for the tips. I have made the changes you have suggested, and it is working as expected . Thanks again.