I am using data-grid to display the database and used a combo-box and textbox to search the data field I got the error as "Syntax error in FROM clause"
and then
"Runtime Error '-2147217900(80040e14)' Method Refresh' of object 'IAdodc' Failed."
Private Sub Search_Click()
If Category.Text = "Name" Then
Showdata.RecordSource = "Select * from EmployeeRegisteration where Name = '" + Display.Text + "'"
Showdata.Refresh
Showdata.Caption = Showdata.RecordSource
End If
End Sub
I've created many other forms but never faced such error.