Subject Re: Opening at last record?
Author sdbeames
--- In IBObjects@y..., "sdbeames" <s.beames@m...> wrote:
> Hi,
> what is the correct way to open a query on the last record
> (without changing the sort order)?
>
> I tried adding:
> IB_Query1->Last();
> to the query's AfterOpen() event, but the last record is un-
editable
> and the Edit button on my TIB_UpdateBar stays grayed until I've
> moved to another record.
>
> V4.2.Hd/FB1/XP/BCB5
>
> Thanks,
> Steve

A simple test app shows the same behaviour, so it can't be because
of my event handling. Is there a method I can call to correct the
dataset's editability? It's in dssBrowse state before and after the
call to Last().

Or should I move the call somewhere else?

Thanks,
Steve