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 D480E528BC for ; Tue, 17 May 2005 13:24:17 -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 08564-09 for ; Tue, 17 May 2005 16:24:03 +0000 (GMT) Received: from iserver.abag.ca.gov (iserver.abag.ca.gov [198.31.87.3]) by svr1.postgresql.org (Postfix) with ESMTP id E3B2C5291E for ; Tue, 17 May 2005 13:23:47 -0300 (ADT) Received: from groupwise.abag.ca.gov (groupwise.abag.ca.gov [198.31.87.26]) by iserver.abag.ca.gov (8.13.4/8.13.4) with ESMTP id j4HGNi1C027728 for ; Tue, 17 May 2005 09:23:44 -0700 (PDT) Received: from D01-MTA by groupwise.abag.ca.gov with Novell_GroupWise; Tue, 17 May 2005 09:23:44 -0700 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Tue, 17 May 2005 09:23:19 -0700 From: "Fred Parkinson" To: , , Subject: Re: Access 2000 bitching... "The field is too small to Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200505/27 X-Sequence-Number: 5330 It's a kludge, but you can successfully use boolean postgres variables in = Access. To link a form with bound check boxes to a postgres table, link to the = table with an odbc driver with 'bool as char' unchecked and 'true is -1' = checked. To run queries against a postgres table with boolean fields, use a second = odbc driver (which will link to the same table under a different name) = with 'bool as char' checked and 'true is -1' unchecked, and in the query = use "1" and "0" as the true and false values (ie, use variable =3D "1" in = place of variable=3Dtrue). It's only a slight pain to link with two driver configurations, and is has = been working for me without difficulty for two years now. Fred >>> "Philippe Lang" 05/16/05 11:05 PM >>> I'm not sure really, but it might by a problem with a DATE field that = receives TIMESTAMP data. Try casting. Otherwise, avoid BOOLS with a MS Access front-end... Use INT2 instead. Hope this helps Philippe -----Message d'origine----- De : pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.or= g] De la part de Peter Bense Envoy=E9 : mardi, 17. mai 2005 00:07 =C0 : pgsql-odbc@postgresql.org; jeff_eckermann@yahoo.com=20 Objet : Re: [ODBC] Access 2000 bitching... "The field is too small to I'm not at work right now so don't have the exact details available, = BUT... 1. I am not using check boxes. 2. When I insert data into the table via PSQL it displays fine in the view = itself. The error occurs when I try to insert. The user does have all = the necessary privileges, etc. I have verified that part about 10 times. 3. I have not changed any of the odbc settings (as you mention) from their = default values. ./peter Peter T. Bense - Teradata Certified Professional (ptbense@gwm.sc.edu) - 803-777-9476 Database Administrator/Webmaster Prevention Research Center University of South Carolina >>> Jeff Eckermann 05/16/05 4:47 PM >>> --- Peter Bense wrote: > I am getting a >=20 > "The field is too small to accept the amount of data > you attempted to > add" postgresql error when attempting to enter data > into the following > linked table in MS-Access. Nothing seems to be out > of range. Any > ideas?: I assume you are using check boxes? This has been a frequently encountered problem for Access users. I adopted a specific workaround a while ago, then forgot about the problem. But before I recommend that workaround, let's make sure that time has not revealed a better way. What are your driver settings for "bools as char" and "true is -1"? >=20 > CREATE TABLE tblpis_survey_receipt ( > insertion SERIAL, > ppt_id INT4 NOT NULL, > date_received DATE NOT NULL, > staff_id INT4 NOT NULL, > survey_type INT2 NOT NULL, > is_blank BOOL NOT NULL, > birth_month INT2, > birth_year INT2, > check_ppt BOOL NOT NULL, > check_dob BOOL NOT NULL, > check_tracking BOOL NOT NULL, > date_inserted TIMESTAMP WITHOUT TIME ZONE NOT > NULL, > date_modified TIMESTAMP WITHOUT TIME ZONE NOT > NULL, > PRIMARY KEY (insertion) > ); >=20 >=20 > Peter T. Bense - Teradata Certified Professional > (ptbense@gwm.sc.edu) - 803-777-9476=20 > Database Administrator/Webmaster > Prevention Research Center > University of South Carolina >=20 > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the > unregister command > (send "unregister YourEmailAddressHere" to > majordomo@postgresql.org) >=20 =09 __________________________________=20 Yahoo! Mail Mobile=20 Take Yahoo! Mail with you! Check email on your mobile phone.=20 http://mobile.yahoo.com/learn/mail=20 ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)