Subject Re: Searching under program control
Author Marco Menardi <mmenaz@lycosmail.com>
Have you tried Atable.First instead of Atable.Post?
regards
Marco Menardi

--- In IBObjects@yahoogroups.com, Chris Wallis <cwallis@a...> wrote:
> I need to perform a search under program control using a TIB_Query
object.
> The SQL in the query is just:
>
> SELECT * FROM ATABLE
>
> This is the genaral approach I tried that is not working:
>
> ATable.ClearSearch;
> ATable.Search;
> Atable.FieldByName('AField').AsString := Edit1.Text; {* Search Value *}
> Atable.Post;
>
> Can I use a general purpose query as described above to search a table
> programmatically? If yes, where can I find an example?