Not sure I follow completely. Once the text is entered, how is the button activated? If that is by clicking on it, you've just left the control/field so what's the point of coding to try to get around that? Besides, change event fires for every key press on that control - not always a good thing. Then, I can enter A and backspace to remove and now the button is enabled. Too late to perform any evaluation on what's in the control because now I can click anyway. You're probably better off using BeforeUpdate to validate contents, and cancel the event if the entry doesn't pass validation tests. If it passes, enable the button.
Last edited by Micron; 04-18-2024 at 10:11 AM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.