Re: Again: How to copy a memo
- From: "Willi Kühnis" <wkuehnis@xxxxxxxxxx>
- Date: Thu, 26 May 2005 06:54:13 +0200
Hi,
I now know,
how it works: I use now tADOTable (instead of tADODataset), and set the
filter to my record. Then I can assign.
It seems, that tAdoDataset don't work the same way.
Willi
"Willi Kühnis" <wkuehnis@xxxxxxxxxx> schrieb im Newsbeitrag
news:42942d9a$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> yesterday, I got some tipps, how to copy a memo (ADO,D7)
> I tried a lot now, but it still don't work.
> When I post, then I get a exception. (when I don't post, then the value is
> not saved)
> Question: with which AdoComponent can I change a field with assign ?
> TADOQuery or TADODataset ?
>
> Thanks
> Willi
>
>
>
> dsShop := tAdoDataSet.create(Application);
> dsShop.Connection := pShopADOConn;
> dsShop.CommandText := 'Select Mess from MessO where Nummer=' +
> inttostr(NummerArr[ii]) ;
> dsShop.Open;
> //
> dsZent := tAdoDataset.create(Application);
> dsZent.Connection := pConnZentRW;
> dsZent.CommandText := 'Select Mess from MessZwisch where
> Nummer=' + inttostr(NewNum) ;
> dsZent.Open;
> //
> dsZent.Edit;
> dsZent.FieldByName('Mess').assign(dsShop.FieldByName('Mess'));
> if dsZent.State in [dsEdit] then begin
> dsZent.Post;
> end;
> //
> dsShop.close;
> dsShop.free;
> dsZent.close;
> dsZent.free;
>
>
.
- References:
- Again: How to copy a memo
- From: Willi Kühnis
- Again: How to copy a memo
- Prev by Date: About NextRecordSet
- Next by Date: LoadFromFile load error!
- Previous by thread: Re: Again: How to copy a memo
- Next by thread: D2005 ADO problem: multiple-step OLE DB operation generated errors
- Index(es):
Relevant Pages
|