As the title says I have a adodc with one table "sql" who has three fields, and I want to filter the datagrid by a string as the user type letter by letter.
I've wrote this code :
Private Sub Text1_Change()
If Adodc1.Recordse t.RecordCount > 0 Then Adodc1.Recordse t.MoveFirst
Adodc1.RecordSo urce = "details where upper(Den_Furni zor) like '%" & UCase(Trim(Text 1.Text)) & "%'"
Adodc1.Refresh
End Sub
and I don't now why I have an error
"INVALID SQL statement; expected 'DELETE', 'INSERT' , 'PROCEDURE' , 'SELECT' or 'UPDATE' "
I've wrote this code :
Private Sub Text1_Change()
If Adodc1.Recordse t.RecordCount > 0 Then Adodc1.Recordse t.MoveFirst
Adodc1.RecordSo urce = "details where upper(Den_Furni zor) like '%" & UCase(Trim(Text 1.Text)) & "%'"
Adodc1.Refresh
End Sub
and I don't now why I have an error
"INVALID SQL statement; expected 'DELETE', 'INSERT' , 'PROCEDURE' , 'SELECT' or 'UPDATE' "
Comment