Digit to right of decimal stays at0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In forms view, I enter a number as 32.2, then I hit enter, and the 2 to the
right of the decimal returns to 0. I have my format as fixed and decimal
places as 1. what am I doing wrong?
 
Rich

"format" is a display characteristic. If the underlying data type of the
field happens to be Integer, you will ALWAYS have a .0 for a formatted
display, since it is only the integer portion that is being stored.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
In forms view, I enter a number as 32.2, then I hit enter, and the 2 to the
right of the decimal returns to 0. I have my format as fixed and decimal
places as 1. what am I doing wrong?

Most likely the field the control is bound to is a Number datatype
with a Field Size of Integer.
By definition, an Integer cannot contain a decimal portion.
Either change the Field Size to Double or Single or change the
datatype to Currency.
 
In forms view, I enter a number as 32.2, then I hit enter, and the 2 to the
right of the decimal returns to 0. I have my format as fixed and decimal
places as 1. what am I doing wrong?

Most likely using the default Long Integer datatype. Open the table in
design view; select this field; and look at the first row of the field
properties in the lower left.

Change this to Float or Double to allow decimals.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access stripping decimal places in query 1
Inserting decimal places 1
Currency Decimals 5
Formatting decimal places 8
decimal places 2
Decimal Places 1
Controlling decimal digits 6
Make table decimal place 1

Back
Top