Subject Re: [IBO] Strange state after TIB_Cursor.Open
Author Jason Wharton
Open doesn't fetch a record. You should use the First method (instead of
Open) with the Cursor, which both opens it and fetches the first record. If
the cursor is already open and you call First it will be closed and then
opened again.

--
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com

-- We may not have it all together --
-- But together we have it all --


"Dany Marmur" <arbit@...> wrote in message
news:b1rk2j$ij1$1@......
> Hi all!
>
> I've done a load of coding on my "base form" so before going into this
> matter more I'll just ask without code samples or such.
>
> Has anyone had a form with a key- and masterlinked Query open and it all
> looks properly but the query's CanEdit is false before one navigates to
> another record? AutoFetchFirst is true. The query being the one that all
> others link to (eventually).
>
> The Datasets Fields' member RowNode is nil! It should not be and it only
> happen sometimes.
>
> What can I call besides Refresh to make CanEdit true (assign the RowNode
> member)?
>
> Thanks,
>
> /Dany