formalejo
Jul 13th, 2001, 08:53 PM
How can we use the Lost Focus event of the Text box by using the shortcut keys from the command button?
Senario: Cursor is Parked to the TextBox
Case 1. Click the CommandButton, the LostFocus event from the TextBox will be validated. - OK!
Case 2. Press Alt+(Letter) from the CommandButton, the LostFocus event from the TextBox will not be validated. It will move directly to the CommandButton's code. - Not OK!
Case 3. Putting the LostFocus event inside the CommandButton Click event is not applicable. - Dont use this code!
e.g.
Private Sub CommandButton1_Click()
TextBox1_LostFocus
Msgbox "Record Saved!"
End Sub()
Please Help! your answers will be highly appreciated!
Thanks,
Franz
+639198505203
Senario: Cursor is Parked to the TextBox
Case 1. Click the CommandButton, the LostFocus event from the TextBox will be validated. - OK!
Case 2. Press Alt+(Letter) from the CommandButton, the LostFocus event from the TextBox will not be validated. It will move directly to the CommandButton's code. - Not OK!
Case 3. Putting the LostFocus event inside the CommandButton Click event is not applicable. - Dont use this code!
e.g.
Private Sub CommandButton1_Click()
TextBox1_LostFocus
Msgbox "Record Saved!"
End Sub()
Please Help! your answers will be highly appreciated!
Thanks,
Franz
+639198505203