Results 1 to 13 of 13
  1. #1
    Triland's Avatar
    Triland is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    37

    Formatting for 3 decimal places


    I am working with a report, using numbers. I would like to have the number display out only three dicamal places. I have changed the format to Fixed and Decimal to three and it is not working. Any ideas on what else I might need to change?

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    How is the data formatted in the underlying table?

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    What do you mean by 'not working'? What happens? What is the data type of the field?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Triland's Avatar
    Triland is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    37
    The data in the underlying table is fomatted as Fixed and Decimals set to 3. So on the form (when the item is selected in the dropdown menu) I simply want the number to dispaly out 3 decimal places. Ex: 1123 would be 1.123

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    What is the data type of the field? The formatting in the table is irrelevant. The formatting in the control should supersede.

    Setting field to Fixed 3 decimals would cause 1123 to display as 1123.000 if the data type is Number.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    Triland's Avatar
    Triland is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    37
    the data type of the field in Number.

  7. #7
    Triland's Avatar
    Triland is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    37
    You are correct about the 1123 and 1123.000 piece as well. I noticed that in the sytem with different data.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    Well, I just did a test with field set a Number Long Integer and the Fixed 3 decimal formatting worked. 1123 is displayed as 1123.000. However, because this field is set as Long Integer, cannot enter data like 1123.742. Same for Integer FieldSize.

    Guess don't really understand your issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    Triland's Avatar
    Triland is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    37
    I'm gonna' follow your directions and shoot it over to you ... one sec

    One another note: How do I mark an issue resolved in the forum?

  10. #10
    Triland's Avatar
    Triland is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    37

    Format issue database

    Ok attached is the database. Open the Conduit Fill Calc Circuit Form. Go to circuit dropdown and look at the first one "C005" that is how it should look ... just as an example ... and it only looks like that becuase it just happens to fit. Then look at E0050-1 and that is how it looks when we pull up one of the options in the list. When you look at the total area at the bottom the value comes in great. Not sure what I'm doing wrong.
    Attached Files Attached Files

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    Problem with numbers in combobox RowSource is that they are really text. So the display in unbound Area textbox is text. Convert the data back to number with Val().

    =IIf([Cable 1].[Column](1) Is Null,0,Val([Cable 1].[Column](1)))


    Mark thread Resolved from the Thread Tools dropdown above first post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #12
    Triland's Avatar
    Triland is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    37
    Ok ... last question on this one. Where in the actual form, query or report do you add the coding.

  13. #13
    Triland's Avatar
    Triland is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    37
    Got it and it worked!!! I will update it ... issue resolved.

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

Similar Threads

  1. Decimal Places
    By momodoujimnjie in forum Access
    Replies: 1
    Last Post: 01-09-2013, 04:49 AM
  2. Report decimal places
    By jackyoung2012 in forum Reports
    Replies: 1
    Last Post: 03-22-2012, 12:12 PM
  3. Limiting decimal places
    By Cran29 in forum Access
    Replies: 13
    Last Post: 01-08-2011, 08:01 AM
  4. Changing decimal places
    By stupesek in forum Reports
    Replies: 12
    Last Post: 09-01-2010, 11:33 AM
  5. many decimal places in calculated fields
    By GordS in forum Access
    Replies: 1
    Last Post: 02-04-2009, 11:12 AM

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