Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert to SQL table -- numbers are changing

Status
Not open for further replies.

cp950

Programmer
Dec 18, 2000
19
US
I did not even know how to search for this, though I did try...

I am using Access_2000 to collect user data. When done, I insert it into a SQL_2000 table. Access PRICE field is Currency, and the SQL field PRICE is Float. I am moving the data with a simple append query.

The kicker:
Access = 45.4750
SQL = 45.474998474121094

Why would Access or SQL alter a basic number upon import? How can I avoid this?

Thank you all in advance, for I am unable to find ANYthing about this silliness.
___Craig___
 
Be aware that a Float real number is only an approximation.
Doesn't SQL admits Currency or Money or Decimal type ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top