Results 1 to 4 of 4
  1. #1
    1953hogan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Posts
    10

    Problem with Number Data Type

    I'm using Access 2997 and am pretty new to this. I have a table and a form with a number field:



    The table has a field called

    Field Name: CountUnitsPerPack
    Type: long integer
    format is general number
    decimal places set to auto

    I also have set up this field on my entry form, with the same properties:

    format is general number
    decimal places set to auto

    The problem is that the field on the form does not accept decimal places:

    If I enter the value "0.1" into the field on the form, the number "0" displays on the form. If I open the table, I see the value 0.1 has been entered into the field.

    As I've said, the properties in design view show the field as a general number with decimal set to auto.

    This is causing problems with some calculated fields, and I can't figure it out.

    How do I get this form to accept and display a decimal (eg "0.1")?

    Thanks in advance!

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Integers are WHOLE numbers. They do not have decimal places. Change to Single, Double, Decimal or Currency datatype.

  3. #3
    1953hogan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Posts
    10

    Solved my problem

    Set the field to "single" and now all is fine. Sorry to have posted.

    Steve

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by 1953hogan View Post
    Sorry to have posted.
    Don't be sorry. That is what we're here for. If you don't know the answer, regardless of how basic it may SEEM after you get the answer, you still learned something and will probably never make that mistake again. Or, if you do, you will recognize it when you see it. So, don't be sorry for having posted. There was a time (a long time ago now) when I was in the same place you are and I made that mistake as well.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access and SQL Server data type problem
    By rayc in forum Access
    Replies: 1
    Last Post: 09-10-2010, 07:27 PM
  2. Replies: 2
    Last Post: 03-18-2010, 08:24 PM
  3. bigint field type problem
    By hakeem7777 in forum Access
    Replies: 0
    Last Post: 09-21-2009, 08:10 PM
  4. Number data type
    By BernardKane in forum Access
    Replies: 1
    Last Post: 11-11-2006, 08:19 PM
  5. query for data type number
    By oracle in forum Queries
    Replies: 1
    Last Post: 12-14-2005, 03:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums