Article View: borland.public.cppbuilder.database.ado
Article #3777Re: Whats wrong with this picture ?
From: MarkR
Date: Fri, 21 Jun 2002 12:34
Date: Fri, 21 Jun 2002 12:34
32 lines
1742 bytes
1742 bytes
Try it without the call to UpdateRecord() as that funstion is used
internally.
"Uros Obradovic" <ouros@hotmail.com> wrote in message
news:3d124aad$1_2@dnews...
> PersonSet->Open();
> PersonSet->Edit();
> PersonSet->Append();
>
> PersonTable->Open();
> PersonTable->Append();
> PersonTable->FieldByName("Owner")->AsInteger = Owner->Text;
> ...
>
> PersonTable->Post();
> PersonTable->UpdateRecord();
>
> After I click on the button and this code starts with execution, an error
> pops up
> -> Dataset is not in Insert or Edit mode
>
> btw. this is the code for creating a new record. When I go back to the
> table, I can see that the new record has been created, but right after the
> error window pops up. what should I do ????
>
> Thanks
> Uros
>
>
>
>
Technical Details
Message-ID:
<3d131d06$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3d124aad$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,559fa8662853ac92 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-06-21 05:39:57 PST From: "MarkR" <mark.richards8@wapthespamntlworld.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3d124aad$1_2@dnews> Subject: Re: Whats wrong with this picture ? Date: Fri, 21 Jun 2002 13:34:04 +0100 Lines: 34 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: 213.107.139.203 Message-ID: <3d131d06$1_2@dnews> X-Trace: dnews 1024662790 213.107.139.203 (21 Jun 2002 05:33:10 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews