I have two number fields. In the table I have the fields set up as decimal
and the format is general number with two decimal places. I have the same
format for the fields in the form, but everytime I try to put in a decimal
number the form automaticaly rounds it up to the nearest whole numer. Any
idea why??
When I see that kind of behavior, I look for formatting as an Integer or
Long Integer.
If you don't find it in the underlying table or in the form, and you don't
have code running behind the form that might do that, consider re-creating
the form. Sometimes an Access form can get subtly corrupted and (I've
found) it's easier to start over.
Regards
Jeff Boyce
Microsoft Office/Access MVP
>I have two number fields. In the table I have the fields set up as decimal
> and the format is general number with two decimal places. I have the same
> format for the fields in the form, but everytime I try to put in a decimal
> number the form automaticaly rounds it up to the nearest whole numer. Any
> idea why??
injanib - 13 Jul 2007 20:42 GMT
I have tried all possible formats, and recreating the form at this point
happens to be extremely inconvinient and time consuming. It has way to much
stuff on it.
thanks for the suggestion though.
>When I see that kind of behavior, I look for formatting as an Integer or
>Long Integer.
[quoted text clipped - 14 lines]
>> number the form automaticaly rounds it up to the nearest whole numer. Any
>> idea why??
John W. Vinson - 14 Jul 2007 02:21 GMT
>I have tried all possible formats, and recreating the form at this point
>happens to be extremely inconvinient and time consuming. It has way to much
>stuff on it.
Just to clarify - the problem is probably not the Format of the number, but
the Datatype. The default Number datatype in a table is long Integer - and
integers are, by definition, whole numbers. Check the table definition!
You should not need to recreate the form if you change the datatype of the
underlying field.
John W. Vinson [MVP]
missinglinq - 14 Jul 2007 04:14 GMT
"In the table I have the fields set up as decimal and the format is general
number with two decimal places" would indicate that you have the datatype set
as *decimal.* Unless this datatype has been added since AC2000 (it doesn't
exist in 2000), John has to be correct!

Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000
Bob Quintal - 14 Jul 2007 03:41 GMT
> "In the table I have the fields set up as decimal and the
> format is general number with two decimal places" would
> indicate that you have the datatype set as *decimal.* Unless
> this datatype has been added since AC2000 (it doesn't exist in
> 2000), John has to be correct!
Decimal exists in Access 2002, but it stores only integers. One
must set the Scale property to the correct number of decimal
places, the decimal places property is useless.

Signature
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
RoyVidar - 14 Jul 2007 18:09 GMT
"missinglinq via AccessMonster.com" <u28780@uwe> wrote in message
<7523f574c2736@uwe>:
> Unless this datatype has been added
> since AC2000 (it doesn't exist in 2000), John has to be correct!
Hm, are you sure?
Data Type: Numeric
Field Size: Decimal

Signature
Roy-Vidar