Received: from u1.abs.net (root@u1.abs.net [207.114.0.131]) by hub.org (8.9.1/8.9.1) with ESMTP id MAA07572 for ; Mon, 18 Jan 1999 12:40:37 -0500 (EST) (envelope-from byronn@insightdist.com) Received: from insightdist.com (nobody@localhost) by u1.abs.net (8.9.0/8.9.0) with UUCP id MAA07438 for pgsql-general@postgreSQL.org; Mon, 18 Jan 1999 12:27:34 -0500 (EST) X-Authentication-Warning: u1.abs.net: nobody set sender to insightdist.com!byronn using -f Received: from ceodev by insightdist.com (AIX 3.2/UCB 5.64/4.03) id AA26624; Mon, 18 Jan 1999 12:18:15 -0500 Received: from byronn by ceodev (AIX 4.1/UCB 5.64/4.03) id AA57158; Mon, 18 Jan 1999 12:18:14 -0500 Message-Id: <36A36D59.D6064F6A@insightdist.com> Date: Mon, 18 Jan 1999 12:20:25 -0500 From: Byron Nikolaidis X-Mailer: Mozilla 4.05 [en] (Win95; I) Mime-Version: 1.0 To: Valerio Santinelli Cc: "pgsql-general@postgreSQL.org" Subject: Re: [GENERAL] Checkboxes on MSAccess and PostgreSQL References: <36A36B43.EBA270B4@mediacom.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Valerio Santinelli wrote: > First of all.. thanks to everybody for helping me out witht the > "sequence" stuff. :) > > I've got another questions for you dudes. When using a CheckBox in a > Form written in MSAccess that's related to a table in a > PostgreSQL database, if I simply turn its status from ON to OFF it works > fine, while if i'm doing the opposite it won't work. > > I noticed that when exporting the table from MSAccess to PostgreSQL the > "yes/no" fields all became char(1) and not boolean.. maybe this could be > the problem. > > I also noticed from the logs that when updating the status from ON to > OFF the UPDATE goes out with something like field_name='0' > I'm not sure it should use the "'" since it's more like a numerical, no > ? > Try setting the Advanced Driver Option "Bools as Char" to disabled. This will cause the export to use a Boolean field in postgres. Byron