Article View: borland.public.cppbuilder.database.ado
Article #210Re: Row cannot be located for updating... error
From: Vassiliev V. V.
Date: Sat, 16 Jun 2007 12:11
Date: Sat, 16 Jun 2007 12:11
72 lines
3163 bytes
3163 bytes
It is a bug in C++ Builder 6. Add to any unit (to main form, for example):
namespace System
{
void __fastcall CheckSafecallResult(HRESULT hr)
{
OleCheck(hr);
}
}
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Azrin Aris" <azrin_aris@yahoo.com> ???????/???????? ? ???????? ?????????:
news:4673c19f@newsgroups.borland.com...
> Thank you for the translation. After I put the code in, now I got this
> link error:
>
> Unresolved external 'System::__linkproc__ __fastcall CheckAutoResult()'
>
> What do I need to include to the project file?
>
> Regards
>
> Azrin
>
> Vassiliev V. V. wrote:
>> ADODataSet1->Recordset->Properties->Item[WideString("Update
>> Criteria")]->Value = adCriteriaKey;
>>
>> call after ADODataSet1->Active = true;
>>
>> //------------------------------------------
>> Regards,
>> Vassiliev V. V.
>> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
>> ADO.Net
>> http://www.oledbdirect.com - The fastest way to access MS SQL Server,
>> MS Jet (Access) and Interbase (through OLEDB)
>>
>> "Azrin Aris" <azrin_aris@yahoo.com> ???????/???????? ? ????????
>> ?????????: news:46734345@newsgroups.borland.com...
>>> Azrin Aris wrote:
>>>> Hi,
>>>>
>>>> I got the above error and I've search google grooups for answers. Got
>>>> alot of people have the same problem. most of it suggest to have unique
>>>> primary key in the table which I already have. But still couldn't get
>>>> the problem solved. Anyone have any ideas how to solve this?
>>>>
>>>> TIA
>>>>
>>>> Azrin
>>> I found a solution in delphi but I do not know how to translate this is
>>> BCB. Here is the code
>>>
>>> ADODataSet1.Properties['Update Criteria'].Value = adCriteriaKey
>>>
>>> can someone please translate this into BCB?
>>>
>>> Thank you
>>>
>>> Cheers
>>>
>>> Azrin
>>
Technical Details
Message-ID:
<4673d3b4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46681c2c$1@newsgroups.borland.com> <46734345@newsgroups.borland.com> <4673920c$1@newsgroups.borland.com> <4673c19f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,232a3271faa6e13e X-Google-Attributes: gid10698b,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Vassiliev V. V." <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <46681c2c$1@newsgroups.borland.com> <46734345@newsgroups.borland.com> <4673920c$1@newsgroups.borland.com> <4673c19f@newsgroups.borland.com> Subject: Re: Row cannot be located for updating... error Date: Sat, 16 Jun 2007 16:11:18 +0400 Lines: 73 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-Antivirus: avast! (VPS 000749-1, 15.06.2007), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 85.93.138.132 Message-ID: <4673d3b4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1181995956 85.93.138.132 (16 Jun 2007 05:12:36 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail