Thanks... yes that will do the trick. I had already fixed with similar code as yours.