Giordano Bruno
Well-known Member
- Joined
- Jan 7, 2007
- Messages
- 1,352
I have a userform with 9 controls, of which 6 are textboxes. Some errors can be detected only on leaving the textbox. If an illegal entry is detected on leaving a textbox, my _AfterUpdate code will erase the entry and give a warning message. Typically users will have tabbed to the next textbox, but they may click any other control. I would like thecursor to be forced back to the empty textbox so that they may correct the error. Effectively, whatever control they then select, they will be returned to the textbox where the error was detected. If this is not possible, that information will stop me wasting any more time.