Hi there,
I have a textfield for some search option in the ms access form
I have written a code that after typing the search text as soon as user hits Enter key the data form puts some filter on the table
However focus goes to some other control
I would like the focus to be on the same text box even if the user hits Enter key
my code is
Private Sub txt_Filter_Coun terpartyName_Ke yDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
put_filter
txt_Filter_Coun terpartyName.Se tFocus
End If
End Sub
Please advice
Yogesh
I have a textfield for some search option in the ms access form
I have written a code that after typing the search text as soon as user hits Enter key the data form puts some filter on the table
However focus goes to some other control
I would like the focus to be on the same text box even if the user hits Enter key
my code is
Private Sub txt_Filter_Coun terpartyName_Ke yDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
put_filter
txt_Filter_Coun terpartyName.Se tFocus
End If
End Sub
Please advice
Yogesh
Comment