Pavan, Could you past in Line 6 of your code and maybe a couple of the surrounding lines? Thanks, John