Re: Access and Boolean

From: Andrew Gould <andrewgould(at)yahoo(dot)com>
To: Hauke de Vries <H(dot)de(dot)Vries(at)philos(dot)rug(dot)nl>, pgsql-general(at)postgresql(dot)org
Subject: Re: Access and Boolean
Date: 2001-12-06 20:02:51
Message-ID: 20011206200251.48479.qmail@web13402.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I just created a table with a boolean field in
PostgreSQL and created a form in MS Access with which
to edit it. The form allowed me to enter the
following characters with the following results:

entry result
1 1
0 0
t 1
f 0
y 1
n 0

I am using PostgreSQL 7.1.3 on FreeBSD 4.4 and MS
Access 97 on Windows 98. My PostgreSQL ODBC driver is
set to "Use Declare/Fetch". (I don't know if that
matters.)

Perhap you could use a combo box in your Access form
to offer values acceptable to PostgreSQL. This should
be a simple form edit.

When you "imported" Access tables into PostgreSQL, how
did you do it? Perhaps the surest method of
conversion is to manually create the tables in
PostgreSQL and then use an Append query in MS Access
to move the data. This is less efficient than
exporting a table via ODBC; but the results might be a
little better.

Have you reviewed the boolean data that was moved to
PostgreSQL to make sure it went across okay?

Best of luck,

Andrew Gould

--- Hauke de Vries <H(dot)de(dot)Vries(at)philos(dot)rug(dot)nl> wrote:
> I've imported some Access tables into PostgreSQL and
> Would like to
> use Access as frontend with linked tables.
>
> For modifying, updating, appending we use a form.
> Some fields have
> Boolean values (default 0). In Access this is
> expressed as '=No'.
> If we want it marked, i.e. set 'field' to 1, Access
> returns "The
> field is too small to accept the amount of data you
> are trying to
> add. Try inserting or paste less data."
>
> This is a remarkable 'feature' of Access returning
> -1 upon clicking.
> How to circumvent this behaviour?
>
> Hauke de Vries
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
> (send "unregister YourEmailAddressHere" to
majordomo(at)postgresql(dot)org)

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Wood 2001-12-06 20:37:23 Re: update returns 1, but no changes have been made
Previous Message Dado Feigenblatt 2001-12-06 19:24:06 Where is PL/Python?