I did a generic search form for my application, but now I realized that I can not filter the dataset using lookup fields, is there an alternative to not using a query? A component that can do this free or commercial? Below is the procedure that I use next to a combobox and an edit.
procedure Pesquisa(DS : TDataSource; Field : string; Value : string);
begin
DS.DataSet.Filter := 'Upper(' + Field + ') like ' + QuotedStr('%' + UpperCase(Value) + '%');
DS.DataSet.Filtered := True;
end;