stephaniechongg
Registered User.
- Local time
- Today, 20:17
- Joined
- Feb 5, 2016
- Messages
- 15
I have a form where i'd like the textbox (Textbox_Search) to call the command i have already formatted in the search button image (Img_Search) on keypress.
I've gotten this far
Private Sub TextBox_Search_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Call Img_Search_Click
End If
End Sub
It had worked just a minute ago but suddenly an error was produced saying that the Else without If
I've gotten this far
Private Sub TextBox_Search_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Call Img_Search_Click
End If
End Sub
It had worked just a minute ago but suddenly an error was produced saying that the Else without If