Article View: borland.public.cppbuilder.database.ado
Article #4549NULL fields
From: mafi
Date: Mon, 26 Nov 2001 17:51
Date: Mon, 26 Nov 2001 17:51
19 lines
1428 bytes
1428 bytes
Hi !
I'm using a TADOQuery to insert data into a table with the Parameters from
another table.
When I execute the query, if I got a NULL field I got a EOleException that
says "Parameter object is improperly defined. Inconsistent or incomplete
information was provided"
My code's like this:
ADOQuery1->Parameters->Items[0]->Value =
ADOQuery2->FieldByName("field1")->AsString;
...
this : ADOQuery1->Parameters->Items[0]->Value = NULL;
doesn't work as well, and the paNullable option of the Attributes property
doesn't change anything.
How can I insert data with NULL value ?
Thanks
Technical Details
Message-ID:
<3c0281a0_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,b547a45fc63b1283,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-11-26 10:01:50 PST Reply-To: "mafi" <mafi@multimania.com> From: "mafi" <mafi@multimania.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: NULL fields Date: Mon, 26 Nov 2001 18:51:11 +0100 Lines: 21 Organization: gns X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 80.8.17.240 Message-ID: <3c0281a0_1@dnews> X-Trace: dnews 1006797216 80.8.17.240 (26 Nov 2001 09:53:36 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews