Subject Re: [IBO] tib_grid display on query rerun
Author stanw1950
Luiz, your way seems to work. I don't get the av anymore. Thanks a
lot. And thanks to everyone else who responded.

Stan Walker


> I´m going to give my suggestion:
>
> Do you can use:
> SQL: qry1='Select * from table1'
>
> On Prepare SQL:
> begin
> if condition1 then
> qry1.SQLWhereItems.Add('ID ='+inttostr(CustId))
> else if condition2 then
> qry1.SQLWhereItems.Add('ID ='+inttostr(CustId))
> ....
> ...
> end;
>
> On event on Click of radio group do:
> begin
> qry1.InvalidateSQL;
> qry1.Refresh;
> end
>
> Regards,
> Luiz