From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: Peter Bense <Ptbense@gwm.sc.edu>
To: pgsql-odbc@postgresql.org
Subject: Re: Access 2000 bitching... "The field is too small to accept the amount of data you attempted to add"
Date: Mon, 16 May 2005 13:47:54 -0700 (PDT)
Message-ID: <20050516204754.22952.qmail@web20826.mail.yahoo.com> (raw)
--- Peter Bense <Ptbense@gwm.sc.edu> wrote:
> I am getting a
>
> "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"?
>
> 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)
> );
>
>
> Peter T. Bense - Teradata Certified Professional
> (ptbense@gwm.sc.edu) - 803-777-9476
> Database Administrator/Webmaster
> Prevention Research Center
> University of South Carolina
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
> (send "unregister YourEmailAddressHere" to
> majordomo@postgresql.org)
>
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: jeff_eckermann@yahoo.com, Ptbense@gwm.sc.edu
Subject: Re: Access 2000 bitching... "The field is too small to accept the amount of data you attempted to add"
In-Reply-To: <20050516204754.22952.qmail@web20826.mail.yahoo.com>
References: <20050516204754.22952.qmail@web20826.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox