Currently I’ve attached a function to a command button on my form which retrieves what the user inputs into the textbox on the form; this works fine but I want to emulate this behaviour with the ENTER key. How can I go about doing this?
I tried the Enter Property on the textbox but that only occurs when focus has been transfered to the textbox, not when i press enter after input.
I’ve read about the KeyUp event for VB but there’s got to be an easier way – I’ve googled this but can’t find what Im looking for. Any suggestions?
Thanks
In many cases, the After Update event is suitable for working with data entered into a textbox, for example:
However, if you need to edit or validate the data, Before Update is more suitable.