Thanks a lot I have worked out my problem with the solution providedby you and it is working fine. You've hit the bulls eye. Thanks foryour help.