Article View: borland.public.cppbuilder.database.ado
Article #207Re: Row cannot be located for updating... error
From: Vassiliev V. V.
Date: Sat, 16 Jun 2007 07:31
Date: Sat, 16 Jun 2007 07:31
39 lines
2308 bytes
2308 bytes
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:
<4673920c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.ecngs.de!ecngs!feeder2.ecngs.de!npeer.de.kpn-eurorings.net!npeer0.kpn.DE!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46681c2c$1@newsgroups.borland.com> <46734345@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> Subject: Re: Row cannot be located for updating... error Date: Sat, 16 Jun 2007 11:31:11 +0400 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 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: <4673920c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1181979148 85.93.138.132 (16 Jun 2007 00:32:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.ecngs.de!ecngs!feeder2.ecngs.de!npeer.de.kpn-eurorings.net!npeer0.kpn.DE!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail