M
Maury Markowitz
I have a form in an ADP bound to a float field in our SQL Server. The
user types in something like 1.23, and often this ends up in the
database as 1.22999999...
At first I believed this was due to the way that SQL Server stores
floats, but now I'm not so sure. When I open that table in the
Database View and "fix" the number, sure enough, it stores it
correctly and works perfectly from then on. Moreover, when I re-create
the VBA code that saves out the field in SQL, the number is correctly
stored as 1.23.
It appears that the problem occurs when Access's (or VBA/COMs) float
data type is converted into SQL it gets changed somehow. Can anyone
shed some light on this?
Maury
user types in something like 1.23, and often this ends up in the
database as 1.22999999...
At first I believed this was due to the way that SQL Server stores
floats, but now I'm not so sure. When I open that table in the
Database View and "fix" the number, sure enough, it stores it
correctly and works perfectly from then on. Moreover, when I re-create
the VBA code that saves out the field in SQL, the number is correctly
stored as 1.23.
It appears that the problem occurs when Access's (or VBA/COMs) float
data type is converted into SQL it gets changed somehow. Can anyone
shed some light on this?
Maury