JMongi
Active member
- Local time
- Today, 07:30
- Joined
- Jan 6, 2021
- Messages
- 802
This may be a moot point as what I want to accomplish may be achieved by other means. But...
The code I am modifying has an unbound textbox that usually runs some code in the AfterUpdate() event after the user presses "Enter" to update the textbox.
I want to shift all the code into a command button event(s) and am curious as to how Access handles the data in the unbound textbox as it's being entered. Doing a little Googling and searching in MS knowledge base led me to the idea of a Textbox.Dirty property. However, MS example code in their entry talking about Textbox.Dirty is all about the form being dirty and doesn't actually use textbox.dirty AT ALL. Go figure.
So, is Textbox.Dirty a thing? Does it matter with no control source? Can I just read the unupdated textbox value entered by the user (without an "enter" press)? Can I simulate/execute an "enter" press on the textbox based on the click event? In general that is frowned upon, but perhaps this is one of the exceptions to the rule?
Sorry, a little rambly today (just today?!
)
The code I am modifying has an unbound textbox that usually runs some code in the AfterUpdate() event after the user presses "Enter" to update the textbox.
I want to shift all the code into a command button event(s) and am curious as to how Access handles the data in the unbound textbox as it's being entered. Doing a little Googling and searching in MS knowledge base led me to the idea of a Textbox.Dirty property. However, MS example code in their entry talking about Textbox.Dirty is all about the form being dirty and doesn't actually use textbox.dirty AT ALL. Go figure.
So, is Textbox.Dirty a thing? Does it matter with no control source? Can I just read the unupdated textbox value entered by the user (without an "enter" press)? Can I simulate/execute an "enter" press on the textbox based on the click event? In general that is frowned upon, but perhaps this is one of the exceptions to the rule?
Sorry, a little rambly today (just today?!
