Subject Re: [IBO] TIB_Query Edit = "Record was not located to update"
Author Helen Borrie
At 09:51 AM 28/03/2003 +0000, you wrote:
>I dynamically create a TIB_Query and do the following:
>
> if ( ! pQry->Prepared )
> pQry->Prepare();
> pQry->ParamByName("MyId")->AsInteger = nDocId;
> pQry->Open();
>
> if ( ! pQry->Eof )
> {
> pQry->Edit();
>
> // Assigna blob to a column
>
> pQry->Close();
> pQry->IB_Transaction->Commit();
> }
>
>When I execute the Close() method I get "Record was not located to
>update"
>
>Any ideas what this is?

Mmmm - where is the call to Post?
Bad or missing KeyLinks?
Closing the cursor before committing the work?

Helen



>Ta
>
>David
>
>
>
>
>
>___________________________________________________________________________
>IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
>___________________________________________________________________________
>http://www.ibobjects.com - your IBO community resource for Tech Info papers,
>keyword-searchable FAQ, community code contributions and more !
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/