Put your code in the LostFocus event of the text box. It gets fired if the user uses the mouse to click something else, and if TAB is used, infact any method of moving focus to something else will fire the event.

Regards,

[This message has been edited by chrisjk (edited 01-24-2000).]