Article View: borland.public.cppbuilder.database.multi-tier
Article #506error with key violation....
From: AMG
Date: Fri, 14 Sep 2001 14:39
Date: Fri, 14 Sep 2001 14:39
45 lines
1804 bytes
1804 bytes
hai...
i have a problem ...
i have create temporary table with sql statement like create table....and it
create...
my program is like this...:
while (query1->EOF)
{
if (a)
{
define query1;
open query1;
if (!query1->isempty())
{
define query2;
open query2 ;
}
}
I append from dataset query to temporary table like this:
table1->append();
table1->fieldbyname("company_id")->asstring =
query1->fieldbyname("company_id")->asstring;
table1->post();
query ->next;
}
when recordset 50 from query , it show an error message it say key
violation....
it happens when number recordset 50....
i can check it to my temporary table and it only contain 50 record
but when i not use IF section....my program success and temporary table
contain all record from query.
anyone have a solution...
thx....
bye..
AMG
Technical Details
Message-ID:
<3ba21692_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-04!supernews.com!newspump.sol.net!wn1feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,a5fc616dbc84478e,start X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2001-09-14 08:09:26 PST From: "AMG" <amg_land@hotmail.com> Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: error with key violation.... Date: Fri, 14 Sep 2001 21:39:11 +0700 Lines: 48 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 202.95.130.226 Message-ID: <3ba21692_1@dnews> X-Trace: dnews 1000478354 202.95.130.226 (14 Sep 2001 07:39:14 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-04!supernews.com!newspump.sol.net!wn1feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!dnews