On a form i have a button to exit the form.
I have also several text controls on the form.
I have embeded validation code for the lostfocus event of the text controls.

My question is Is How can i bypass the evaluation of the code written within the text_lostfocus sub procedure when I click on the exit button.

Kindly indicate a suitable alternate method if the present approach is not feasible.