Topic: Help! I want to set two filters on the same TableGrid

If I want to set two filters on the same TableGrid ?
How do I do I am not to god at this,
.
       Form1.TableGrid1.dbFilter := ('Form1.Number > "50"') AND ('Form1.Name = "' + Form1.Label1.Caption+'"');
       Form1.TableGrid1.dbUpdate;

Re: Help! I want to set two filters on the same TableGrid

Why do you compare name of a Form and caption of a Label? What exactly you want to do?

Dmitry.

Re: Help! I want to set two filters on the same TableGrid

I am sorry it is not a Form its a field from the tables in the TableGrid1,
could I write like this?

     Form1.TableGrid1.dbFilter := ('Skotat.Mangd_Tall > "50"') AND ('Skotat.Plats = "' + Form1.Label1.Caption+'"');
     Form1.TableGrid1.dbUpdate;

Re: Help! I want to set two filters on the same TableGrid

Form1.TableGrid1.dbFilter := '(Skotat.Mangd_Tall > 50) AND (Skotat.Plats = "' + Form1.Label1.Caption+'")';

Why you don't use button with action "Search"?

Dmitry.

Re: Help! I want to set two filters on the same TableGrid

Thank you Dmitry!

I could´t get it to work, but I will try again now.
Thanks again and have a nice day.

Re: Help! I want to set two filters on the same TableGrid

You can attach your project (zip file without exe and dll) and describe what is your goal.

Dmitry.