We help IT Professionals succeed at work.

MS Access table not taking decimal values

servent1
servent1 asked
on
Medium Priority
987 Views
Last Modified: 2012-05-06
I want to have a decimal value in my table so I have a field type
of number and with the field size as decimal.  But  in data view when I enter
in a decimal like .62 it puts in a zero.

What do am doing wrong?
Comment
Watch Question

Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007
Commented:
Set the Scale to at least 2

mx

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
Set format to fixed or standard.

Regards,

Jim
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007

Commented:
You will still need the Scale property set to at least 2, otherwise .. even with Format - which is not really necessary .. if you enter 0.62 ... you will get 0.00 - if Scale is at zero.

mx
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007

Commented:
Just an FYI on Scale.

Scale is the Maximum number of digits that can be stored to the right of the decimal separator.

mx

Author

Commented:
Bingo!  Thanks much appreciated!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.