Article View: borland.public.intrabuilder.data.sql
Article #34UNIQUE KEY constraint
From: Billy Hildebrand
Date: Thu, 08 Jan 1998 00:00
Date: Thu, 08 Jan 1998 00:00
33 lines
1702 bytes
1702 bytes
I have a form I use to edit customer profiles that uses loops to build a series of text and select boxes. The select boxes are populated through a series of SQL calls to an InterBase server. There are three areas composed of five select boxes and a corresponding text box for each. Input on two[ second and third area ] of these works. User can select an entry from one or more select boxes and type in additional information in the text box. [example: select credit card company: Visa, MasterCard, etc, enter card number in text box]. Here's the problem: Whenever the first area has 2-4 [1 or all 5 completed works] selections and corresponding fields filled in And submitted I get the following error: Server Error: violation of PRIMARY or UNIQUE KEY constraint "INTEG_120" on table "TABLENAME" I really don't understand why my method doesn't work on all three areas since all three are built in the same way [and same function call] and all three have basically the database structure [areas two and three have an additional field]. I have searched help and found "keyViolationTableName" as a property to the UpdateSet class, but no example or explanation on how to set this property. Can anyone help with this? Billy Hildebrand Webmaster WWTS
Technical Details
Message-ID:
<69375p$hjn@nnrp3.farm.idt.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 101d9a,15c8aa14bf8cf18,start X-Google-Attributes: gid101d9a,public From: "Billy Hildebrand" <billyh@iname.com> Subject: UNIQUE KEY constraint Date: 1998/01/08 Message-ID: <69375p$hjn@nnrp3.farm.idt.net> X-Deja-AN: 314023210 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: IDT Newsgroups: borland.public.intrabuilder.data.sql