Solved How to disable Number rounding?

SalmanZeiad

Member
Local time
Today, 09:40
Joined
Oct 30, 2017
Messages
112
i have problem when i put price 2.8 become to 3
 
Need a little more information. Are you typing this into a form or directly to a table?
 
If your table number field "Field Size" property is set to Integer change it to single.
 
Thanks. Check the Format properties of that field. Specifically, the number of decimal places.
 
Let's be clear. By default, Access shows you what is in the field. If you open the table and look at that value in Datasheet view, is it 2.8 or 3 ?

Rounding occurs when the data type of the field in the table doesn't support the precision you request. ANY of the integer types will do this, including LONG and INTEGER (a.k.a. WORD) data types. If the data type in the table is not SINGLE, DOUBLE, CURRENCY, or DECIMAL then you cannot have decimal points anyway. However, one can find general advice to avoid using DECIMAL anyway because of its issues in data handling.

 
Let's be clear. By default, Access shows you what is in the field. If you open the table and look at that value in Datasheet view, is it 2.8 or 3 ?

Rounding occurs when the data type of the field in the table doesn't support the precision you request. ANY of the integer types will do this, including LONG and INTEGER (a.k.a. WORD) data types. If the data type in the table is not SINGLE, DOUBLE, CURRENCY, or DECIMAL then you cannot have decimal points anyway. However, one can find general advice to avoid using DECIMAL anyway because of its issues in data handling.

Also i check the table it`s 3
 
Also i check the table it`s 3

Yes, there is the problem. Bob Fitz's suggestion fixed you this time. For future reference, remember that the table in Datasheet view ALWAYS shows you the native format and accurate content of the field in question unless you have somehow adjusted the Datasheet View internal definitions - which is something even advanced Access user's don't do. So if there is EVER any question, the "true" display of your stored data is always found in the Datasheet view and is the first place to look to tell the difference between a data problem and a formatting problem.
 
Forgot you could do that since it is something I knew to NOT do - because it cuts you off from important debugging information.
Thanks for the reminder, Pat.
 

Users who are viewing this thread

Back
Top Bottom