Results 1 to 10 of 10
  1. #1
    Access_throwaway is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    13

    Access: Format Whole Number into Decimal

    Hello-
    Not well versed in Access and having trouble formatting a field.

    Data is supposed to be currency, however it does not include the decimals



    EXAMPLE
    Data: 525
    Need formatted with 2 place decimal: 5.25

    Is there a proper way to set this up in design view or will I need to run a query?

    Thanks for any help you can provide!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Where are you trying to display the value? Is the value in a local table?

  3. #3
    Access_throwaway is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    13
    Trying to update the field in the table...table is local

  4. #4
    Access_throwaway is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    13
    Searching the web I see a similar post the states this:
    =[FieldName]/100

    but do not know where/how to actually run that

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What type of field to you have? Is it Currency, Double, Single..etc?

  6. #6
    Access_throwaway is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    13
    Have it setup as
    Data Type: Number
    Field Size: Single
    Format: Currency

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It will probably not show decimals if none exist, at least in datasheet view of the table. Are you able to place a decimal value in this field? On a form you can use the format property of the control that displays this field to always show let's say 2 decimal places.

  8. #8
    Access_throwaway is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    13
    I ended up exporting it out to Excel and then running the /100 function in there which was able to get the results I was looking for.
    Just another way to skin the cat I suppose. Thanks for your help.

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If this is your db, why not define the field as Currency rather than a floating point single field?

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by Access_throwaway View Post
    I ended up exporting it out to Excel and then running the /100 function in there which was able to get the results I was looking for.
    Just another way to skin the cat I suppose. Thanks for your help.
    You could have done the same thing while still in Access with a query.

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

Similar Threads

  1. Converting a Number to Decimal
    By lwilt in forum Access
    Replies: 5
    Last Post: 10-11-2013, 05:02 PM
  2. Replies: 5
    Last Post: 07-18-2013, 01:43 PM
  3. Table Number format and decimal place problem
    By DjMorgan in forum Access
    Replies: 3
    Last Post: 04-29-2013, 01:52 AM
  4. Replies: 0
    Last Post: 10-22-2012, 02:45 PM
  5. Format decimal numbers with fixed width
    By Persist in forum Programming
    Replies: 5
    Last Post: 07-14-2010, 05:43 PM

Tags for this Thread

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