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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't stop Combo Box from rounding

Status
Not open for further replies.

aliendan

Programmer
Jun 28, 2000
79
US
No matter what I do! Everywhere, the table, the query, the form, the combo box...everywhere it is formated to Single; Fixed; 3 decimal places. But when I use a combo box to query the table to populate another field the combo box is rounding my values from 3 decimal places to 2. I even went into the Regional Settings and changed the number decimal places to 3. Nothing can stop this anomaly. Anyone have a solution?
Dan Rogotzke
Dan_Rogotzke@oxy.com
 
Resize the column in the combo, make it larger. Access tries to help you by rounding some numbers that won't fit in a control, column, etc...

Joe Miller
joe.miller@flotech.net
 
That's not it. I set to 4" and it didn't change a thing. Any other ideas? This is pretty wierd.
Dan Rogotzke
Dan_Rogotzke@oxy.com
 
You can force the format of the number in your select statement for the combo box by using the format function.

format([MyNumber],"#,###.000")

That would always give you a three digit decimal. Joe Miller
joe.miller@flotech.net
 
My gosh, why didn't I think of that. Thank you. I forget more than I remember. Hehaha.
Dan Rogotzke
Dan_Rogotzke@oxy.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top