X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 91682533B1 for ; Tue, 19 Apr 2005 10:10:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69494-05 for ; Tue, 19 Apr 2005 13:10:38 +0000 (GMT) Received: from Mail2.KONTENT.De (mail2.kontent.de [81.88.34.59]) by svr1.postgresql.org (Postfix) with ESMTP id 42E3E54206 for ; Tue, 19 Apr 2005 08:38:41 -0300 (ADT) Received: from jedi.behrens.de (p508CC581.dip0.t-ipconnect.de [80.140.197.129]) by Mail2.KONTENT.De (Postfix) with ESMTP id D419A38805A for ; Tue, 19 Apr 2005 12:51:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by jedi.behrens.de (Postfix) with ESMTP id E9FEC1D854 for ; Tue, 19 Apr 2005 12:50:53 +0200 (CEST) Received: from jedi.behrens.de ([127.0.0.1]) by localhost (jedi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05933-10 for ; Tue, 19 Apr 2005 12:50:53 +0200 (CEST) Received: from anakin (anakin.behrens.de [192.168.150.240]) by jedi.behrens.de (Postfix) with ESMTP id 877F51D843 for ; Tue, 19 Apr 2005 12:50:53 +0200 (CEST) From: lothar.behrens@lollisoft.de To: pgsql-odbc@postgresql.org Date: Tue, 19 Apr 2005 12:52:11 +0200 MIME-Version: 1.0 Subject: Bound column and serial datatype question Message-ID: <4264FEFB.10829.EB6968@localhost> X-mailer: Pegasus Mail for Windows (4.21c, DE v4.21c R1a) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.262 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200504/49 X-Sequence-Number: 5208 Hi, I have a table like this: CREATE TABLE Kunden ( ID serial NOT NULL, CustomerNr serial NOT NULL, Name CHAR(100), ... ); Using bound columns in a form to show the customer data I don=B4t like to = let the user updating the CustomerNr field. This is because, a normal data field is not= autogenerated, but these 'serial' data fields. But I like to show the CustomerNr field in the form. Therefore, I simply m= ade the field readonly in the form. But if I insert a new row, the fields data (de= faults to 0) would be used as the new value in the table. How to avoid this ? Thanks Lothar -- Lothar Behrens www.lollisoft.de Rosmarinstr 3 My public project: 40235 D=FCsseldorf http://sourceforge.net/projects/lbdmf