I deleted your other post as there is no need to double post.

You may need to post your complete code also.