Results 1 to 2 of 2
Thread: decimal places (MS Access 2000)
2005-03-04, 16:11 #1
- Join Date
- Aug 2001
- Surrey, United Kingdom
- Thanked 0 Times in 0 Posts
decimal places (MS Access 2000)
I have a form upon which there is a button to open another form where number calculations are made in several fields, all of the fields are formatted to 2 decimal places, once these calculations are made I click a button to close the form and reurn to the first form, a small bit of coding updates the relevant fields with the results on form one.
My problem is that the numbers are always rounded up to the next whole number, i.e. 5.5 will show as 6, I have rechecked both forms and the tables associated with them and everything is saying 2 decimal places.
Can anybody explain this behaviour and how I can cure it.
Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)
2005-03-04, 16:18 #2
- Join Date
- Mar 2002
- Thanked 28 Times in 28 Posts
Re: decimal places (MS Access 2000)
If you want to use numbers with decimals, the field length must be Single or Double. If it is (Long) Integer, no decimals are stored even if the Decimal Places property is set to 2.