Is there a way to, on one paticular control (text field) trap for the Enter key and on the rest of the form have "Enter = Commit" button?
I would like that when you are in the search field, if you press enter that it would push the search button.
I tried putting:
But the Enter key always jumps me to the Commit button, and I do not see the event fire in the Immediate window's output.
I even went as far as commenting out:
in the Form_Load event and it does not undo the association.
So, is there an Rx for a control specific alternate Enter key behavior?
I would like that when you are in the search field, if you press enter that it would push the search button.
I tried putting:
Code:
Private Sub fldPartNumberSearch_KeyPress(KeyAscii As Integer)
Debug.Print KeyAscii
End Sub
I even went as far as commenting out:
Code:
btnCommit.Default = True
So, is there an Rx for a control specific alternate Enter key behavior?