J
Jason Hunt
Hello All,
I have a form with some text boxes and buttons. The buttons have shortcuts
in their text labels, such as "&Add". When the user is still focused on the
textbox and presses Alt-A, does that Alt-A code get included with the text
value? It appears to be doing so, and I'm wondering what the best way to
deal with it is?
Each of the text boxes have a _Validating() function something like this:
If IsNumeric(Me.TextBox1.Text) Then
' Validate the text
Else
MsgBox("Invalid Entry")
Me.TextBox1.Focus()
End If
The IsNumeric() is failing, so I can only conclude that Alt-A is being added
to the .Text variable. Is there a way to stop this from happening, or strip
that Alt- code off the end?
Thanks.
- Jason
I have a form with some text boxes and buttons. The buttons have shortcuts
in their text labels, such as "&Add". When the user is still focused on the
textbox and presses Alt-A, does that Alt-A code get included with the text
value? It appears to be doing so, and I'm wondering what the best way to
deal with it is?
Each of the text boxes have a _Validating() function something like this:
If IsNumeric(Me.TextBox1.Text) Then
' Validate the text
Else
MsgBox("Invalid Entry")
Me.TextBox1.Focus()
End If
The IsNumeric() is failing, so I can only conclude that Alt-A is being added
to the .Text variable. Is there a way to stop this from happening, or strip
that Alt- code off the end?
Thanks.
- Jason