Article View: borland.public.cppbuilder.database.ado
Article #3647Re: Updating datasets
From: Vassiliev V.V.
Date: Wed, 24 Jul 2002 05:34
Date: Wed, 24 Jul 2002 05:34
72 lines
2917 bytes
2917 bytes
Check that you do not change pointer to dataset (something like ADODataSet2
= ADODataSet1).
Regards,
Vassiliev V.V.
http://www.oledbdirect.com
"Leen" <Leen.VanHaecke@entropia.be> �������/�������� � �������� ���������:
news:3d3d0560_1@dnews...
> Hey,
>
> No, it doesn't seems to work. It's strange. The first record I add isn't
> displayed in other datasets, but all the records I add afterwards, are
> displayed in other datasets! Does a dataset work with buffers? How can I
> solve this?
>
> Thanks!
> "Ronald Loonstra" <r.loonstra@codefit.nl> schreef in bericht
> news:3d3c7817_2@dnews...
> > Leen,
> >
> > I assume you have opened the other ADODataSets before you added the
> records
> > in the first ADODataSet?
> >
> > An opened ADODataSet only contains the records which were available when
> you
> > opened it (In other words, the moment you executed the query). You can
get
> > the actual records with ADODataSet->Requery().
> >
> > Maybe this helps.
> >
> > --
> > HTH
> >
> > Ronald Loonstra
> > CodeFit Applications
> > www.codefit.nl
> >
> > "Uros Obradovic" <ouros@hotmail.com> schreef in bericht
> > news:3d35b0b3$1_2@dnews...
> > > I'd rather say its better if you update tables.
> > > Lets say you have ADOTable1, ADOTable2, try to do something like this
> > >
> > > ADOTable1->Open();
> > > ADOTable1->Edit();
> > > ADOTable1->FieldByName("the_name_of_the_field")->AsString =
> DBEdit1->Text;
> > > .
> > > ..
> > > ADOTable2->Open();
> > > ADOTable2->Edit();
> > > ADOTable2->FieldByName("the_name_of_the_field")->AsInteger =
> > DBEdit5->Text;
> > > .
> > > ..
> > > ADOTable1->Post();
> > > ADOTable2->Post();
> > >
> > > this is all you gotta put and it should work.
> > > i tried to work w/ datasets but i found this way easier for me.
> > >
> > > Good luck
> > > Uros
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID:
<3d3e42b9_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!feed.textport.net!news.stealth.net!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3d33dadd$1_2@dnews> <3d35b0b3$1_2@dnews> <3d3c7817_2@dnews> <3d3d0560_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,d95cd720df6e47c X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-07-23 23:14:53 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3d33dadd$1_2@dnews> <3d35b0b3$1_2@dnews> <3d3c7817_2@dnews> <3d3d0560_1@dnews> Subject: Re: Updating datasets Date: Wed, 24 Jul 2002 09:34:37 +0400 Lines: 74 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: 62.118.135.186 Message-ID: <3d3e42b9_2@dnews> X-Trace: dnews 1027490489 62.118.135.186 (23 Jul 2002 23:01:29 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!feed.textport.net!news.stealth.net!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews