Filter Problem
Posted: Thu 20 Sep 2007 07:11
Hello!
I really hope you can help me, since it's not a problem of your components.
I used a DBGrid to show the result of a SQL Query. My programm allows to filter this Result (for example lets say only show entryes marked as "green".
With a popup menu I gave the possibility to change the "color".
This ist the way I did it (found this solution here in the forum as one of your developepr suggested to another user)
This works out so far good, but if a filter of the color is set, of course the DBGrid should no longer show this entry anymore. But instead I get this error: "Refresh failed. Found 0 records."
I can imagine the problem but yet could not find a way to solve this.
So may I please ask for your help?
Regards
I really hope you can help me, since it's not a problem of your components.
I used a DBGrid to show the result of a SQL Query. My programm allows to filter this Result (for example lets say only show entryes marked as "green".
With a popup menu I gave the possibility to change the "color".
This ist the way I did it (found this solution here in the forum as one of your developepr suggested to another user)
Code: Select all
MyQuery1->SQLRefresh->Text = GetListQuery(MyQuery1->FieldValues["id"]);
MyQuery1->Edit();
MyQuery1->FieldValues["Favorite"] = "1";
MyQuery1->Post();
I can imagine the problem but yet could not find a way to solve this.
So may I please ask for your help?
Regards