I am validating some data with a itemcode_exit routine. The issue is when say the itemcode.text has focus and they click the exit button to return to the previous form the error always goes off that I check in that routine. Is there anyway around this or is there maybe another routine i can use to do some validation as the user leaves that text box, but bypass it when they click the close button etc?
Possibly a way to check to see if the focus is set on itemcode.text etc? Not sure how I would do that though.