Re: Float Percision with MS Access 97 - Mailing list pgsql-odbc

From Tom Lane
Subject Re: Float Percision with MS Access 97
Date
Msg-id 10167.998340845@sss.pgh.pa.us
Whole thread Raw
In response to Float Percision with MS Access 97  (Michael Calabrese <m2calabr@yahoo.com>)
Responses Re: Float Percision with MS Access 97
List pgsql-odbc
Michael Calabrese <m2calabr@yahoo.com> writes:
> If I have a table with a float4 and it has greater
> precision that 4 to the left of the decimal point,
> Access will not let me change that record and gives me
> a write conflict.

You do realize that float4 only carries about six decimal digits of
precision on most machines?

> For example: if I have a table with the following

> Parts:
> PartID  Name   Price   Count
> 555     Tubing 2.50    101.123456

> MS Access seems to get the count from the ODBC driver
> as 101.1234.

And did well to get that, rather than 101.123.

Try float8 or numeric if you want more digits.

            regards, tom lane

pgsql-odbc by date:

Previous
From: Ashley Clark
Date:
Subject: Re: RE: ODBC merge module for Microsoft Installer
Next
From: Michael Calabrese
Date:
Subject: Re: Float Percision with MS Access 97