Article View: borland.public.cppbuilder.database.ado
Article #284Re: Row can not located
From: Viatcheslav V. Vassiliev
Date: Wed, 31 May 2006 20:53
Date: Wed, 31 May 2006 20:53
54 lines
2758 bytes
2758 bytes
Check that you have primary key in table useraccounts (generally in all tables affected by query). //------------------------------------------ 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) "sa" <shaikakbar250281@yahoo.co.in> �������/�������� � �������� ���������: news:447da038@newsgroups.borland.com... > Greetings.. Thanks for your reply > > This is how i am creating a dataset. > > dstUserAccounts = new TADODataSet(this); > dstUserAccounts->Connection = mdlHrmsConnection->adoHrmsConnection; > dstUserAccounts->Close(); > dstUserAccounts->CommandText = "SELECT * FROM useraccounts WHERE > ModifiedOn IS NULL AND DeletedBy IS NULL ORDER BY UserName"; > dstUserAccounts->Open(); > > when i am adding a new record to this dataset it is working fine. > > when i do > dstUserAccounts->Edit(); > dstUserAccounts->Fields->Fields[10]->AsString = "HELLO"; > dstUserAccounts->Post(); > > it is not able to post. > > Thanks > Best Regards > SA > "Stephane Baillargeon" <stephane_baillargeon@sympatico.ca> wrote in > message > news:447c6a44@newsgroups.borland.com... >> Can you post an example code of what you are trying to do? >> >> sa wrote: >> > Hi All, >> > >> > I am new to bcb 6. I am getting a issue "Row can not be located some > values >> > have been changed since last read." when i try to edit and save the > record. >> > >> > Thanking you in advance >> > >> > > >
Technical Details
Message-ID:
<447e0235$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<447c5aeb@newsgroups.borland.com> <447c6a44@newsgroups.borland.com> <447da038@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,eff28bf1f9ea575b X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <447c5aeb@newsgroups.borland.com> <447c6a44@newsgroups.borland.com> <447da038@newsgroups.borland.com> Subject: Re: Row can not located Date: Thu, 1 Jun 2006 00:53:09 +0400 Lines: 56 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-Antivirus: avast! (VPS 0622-2, 31.05.2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 85.93.138.132 Message-ID: <447e0235$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1149108789 85.93.138.132 (31 May 2006 13:53:09 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail