I have a program where the user enters in an account number and the rest of the data is filled into the form. If it is an incorrect account number the users is informed with a pop-up message and focus is returned to the account field. If they enter 0 in the textbox, then focus is automatically sent to the exit button. My problem is that if they enter an incorrect account number, or enter in a correct one then click on the exit button the code is still run (some accounts have multiple entries and a browse window pops up for them to select the correct one) I do not wish for this to run (LostFocus) if they click on exit. Any ideas? I'm been researching and trying to figure out the answer for over a day now. Thanks in advance.
-Serincino
-Serincino