Subject Re: [IBO] When have a query it's data
Author Jason Wharton

> I have a query FMQuery and in the AfterOpen-Event I want to go through
> the data, but no data is there. It's look like:
> procedure TCustomersDataModule.FMQueryAfterOpen(IB_Dataset:
> TIB_Dataset);
> begin
> FMQuery.First;
> while not FMQuery.EOF do
> begin
> showmessage('blabla');
> FMQuery.Next;
> end;
> end;
> But nothing happens, RecordCount is 0. My question: at what time can I
> access the data ?

Try setting AutoFetchAll to true.

Jason Wharton
CPS - Mesa AZ