Hi,
ich würde das so schreiben:
Delphi-Quellcode:
Form1.Query1.Active := False;
Form1.Query1.SQL.Clear;
Label3.Caption := '%'+Edit1.Text+'%';
Form1.Query1.SQL.ADD('SELECT * FROM TABELLE WHERE LOWER (FILMNAME) LIKE :name');
Form1.Query1.ParamCheck := true;
Form1.Query1.ParamByName('name').AsString := LowerCase(Label3.Caption);
Form1.Query1.Active := True;