🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1302

Re: DB "KEY" problems ... Multi-tier

#1302
From: Harold Howe (TeamB)
Date: Mon, 31 Jan 2000 00:00
15 lines
1241 bytes
Tom Barfoot wrote:
> 
> I can't solve the problem of doing an insert into my table which has the
> first field as an AUTOINCREMENT field, and is the primary key.  I get the
> error message "Field value is required".

Do you have persistent fields in the fields editor? If so, then go to
this autoinc field and make sure that Required is set to false. When you
post a record, the VCL loops through each field and checks to make sure
that all required fields have been entered. The autoinc field should not
be entered by the user, so Required should be false. Of course, on the
database end, the field is required. But that's ok.

Harold Howe [TeamB]
http://www.bcbdev.com
Technical Details
Message-ID: <38965527.E61BBAF3@bcbdev.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <86k9ji$ohe8@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,a87640cbe8ed192f
X-Google-Attributes: gidfcd2b,public
From: "Harold Howe (TeamB)" <hhowe@bcbdev.com>
Subject: Re: DB "KEY" problems ... Multi-tier
Date: 2000/01/31
Message-ID: <38965527.E61BBAF3@bcbdev.com>
X-Deja-AN: 580189820
Content-Transfer-Encoding: 7bit
References: <86k9ji$ohe8@bornews.borland.com>
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier