Re: Small textbox width forces rounding.
- From: "J. Goddard" <jrgoddard@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Sep 2006 17:30:53 -0400
Hi -
Sounds as if the format property for the textbox may be incorrect. Try setting the format to Fixed, and the decimal places to 1 (or whatever you require)
P.S. If you widen the textbox, do you see 10.5 or 11?
John
Ray Cacciatore wrote:
I actually have it defined as Double at the table level where the Decimal property is set to Auto. What's weird is that I see 11 in the textbox but the moment I put the cursor in the textbox the value changes to 10.5. The value that's being stored in the table is 10.5 which is what I want. But the moment the cursor leaves the textbox, it goes back to 11.
"Al Campagna" wrote:
Ray,
It's not the width of the text control that's forcing 10.5 to 11, it's the field definition in your table. You probably have it set to to Byte or Integer, which means there can be no decimal places.
Try defining that field as Single. Also, format the form field for as many decimal places as you want to display.
--
hth
Al Campagna
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
"Ray Cacciatore" <RayCacciatore@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:C14F342B-8E29-43CB-B2CD-5CA3B85DF42F@xxxxxxxxxxxxxxxx
I have a textbox with a small width that fits only two digits. When I try to
enter 10.5 in the textbox, Access rounds it to 11. Is there a way to prevent
it from rounding automatically, I don't mind that 10.5 be clipped.
.
- Follow-Ups:
- Re: Small textbox width forces rounding.
- From: J. Goddard
- Re: Small textbox width forces rounding.
- References:
- Re: Small textbox width forces rounding.
- From: Al Campagna
- Re: Small textbox width forces rounding.
- Prev by Date: Re: Tranferring values from one form to another
- Next by Date: Re: Small textbox width forces rounding.
- Previous by thread: Re: Small textbox width forces rounding.
- Next by thread: Re: Small textbox width forces rounding.
- Index(es):
Relevant Pages
|