Subject Re: [IBO] Setting searchcriteria
Author Jason Wharton
It's better that you just use the OnPrepareSQL event directly. You don't
necessarily have to plug stuff into the search buffer of controls.
See the Contact Sample application where it shows how to use the
OnPrepareSQL event along with InvalidateSQL; Refresh; and SQLWhereItems.

Jason Wharton
CPS - Mesa AZ

----- Original Message -----
From: "Magnus Johansson" <trans-x@...>
To: <>
Sent: Thursday, March 29, 2001 2:28 PM
Subject: [IBO] Setting searchcriteria

> Hi List.
> I want to set a search criteria and perform a search in code without using
the searchbar.
> Is this correct or is there another way? (e.g. using some
> with IB_Query do
> begin
> Search;
> ClearSearch;
> CountryNoEditEnh.Text := 'ABC'; ?????
> Post;
> end;
> Thanks, Magnus