Hi Amadis,
no, I don't have a solution, it still works bad.
But I made some changes in my code to solve that situation:
procedure TForm5.Button1Click(Sender: TObject);
begin
AdsQuery1.Close;
AdsQuery1.SQL.Clear;
AdsQuery1.SQL.Add('SELECT * FROM COUNTRY WHERE NAME LIKE ''%'+Edit1.Text+'%'' ');
AdsQuery1.Open;
end;
Don't use the parameter, concatenate the Edit1.Text with the SELECT sentence.
This is not a good solution, it works, but you are in danger of injection sql.
Use with your own risk.
Cheers
Eugeni