Error Else without If

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
 
Try stepping through the code one line at a time to see where the error is.
Perhaps the error is actually in the "Img_Search_Click" procedure that you call
 

Users who are viewing this thread

Back
Top Bottom