Article View: borland.public.cppbuilder.database.ado
Article #483Re: Row can not located
From: sa
Date: Wed, 31 May 2006 13:55
Date: Wed, 31 May 2006 13:55
38 lines
2025 bytes
2025 bytes
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:
<447da038@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<447c5aeb@newsgroups.borland.com> <447c6a44@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,eff28bf1f9ea575b X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "sa" <shaikakbar250281@yahoo.co.in> Newsgroups: borland.public.cppbuilder.database.ado References: <447c5aeb@newsgroups.borland.com> <447c6a44@newsgroups.borland.com> Subject: Re: Row can not located Date: Wed, 31 May 2006 16:55:00 +0300 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 195.39.129.18 Message-ID: <447da038@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1149083704 195.39.129.18 (31 May 2006 06:55:04 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail