Thema: Delphi Filter Record

Einzelnen Beitrag anzeigen

danten

Registriert seit: 19. Feb 2012
Ort: Czech Republic, Prag
126 Beiträge
 
Delphi 10.1 Berlin Architect
 
#1

Filter Record

  Alt 23. Aug 2013, 06:34
Datenbank: AbsoluteDatabse • Version: 1 • Zugriff über: 1
Hi all,
I need to filter a large database of the selected conditions.
ComboBox1 = choice of table columns (FiledByName)
ComboBox2 = selection operator (<> =)
Edit1 = search text

I get an error in this code:

Delphi-Quellcode:
DataSource1.DataSet.Filtered := False;
  DataSource1.DataSet.Filter := QuotedStr(ComboBox1.Text)+ QuotedStr(ComboBox2.Text) + ' '+
  QuotedStr(Edit1.text);
  DataSource1.DataSet.Filtered := True;
I thank you all for your help.
Daniel
  Mit Zitat antworten Zitat