Hallo,
mach mal das Prepared hinter das PAramByName, also
Delphi-Quellcode:
Query.Close;
Query.SQL.Add('
SELECT *');
Query.SQL.Add('
FROM Tablename');
Query.SQL.Add('
WHERE :KeyName='+QuotedStr(KeyValue));
Query.Params.ParamByName('
KeyName').Value:= Edit.Text;
Query.Prepared := True;
Gruß
Ken