Results 1 to 5 of 5
  1. #1
    bgwool is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Posts
    29

    Why Is It Rounding?


    I've got a field called [SumOfTotalHoursNoOTWithBreak] (I know, it's clunky). It holds a value that is rounded to the nearest hundredth. It is displaying in a text box in a report perfectly. I have another text box that has the source [SumOfTotalHoursNoOTWithBreak]-37.5, and this text box is rounding the value to the nearest tenth. I can't figure out what is causing this. I have tried using the Round() function, changing the properties in every field to (2) decimals points. Any idea where else to look? It seems like it's taking into account significant figures, but it won't let me write "-37.50". It auto-changes it back to "37.5". I'm lost!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,642
    Did you set the textbox Format property?
    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.

  3. #3
    bgwool is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Posts
    29
    It's set as General Number

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,642
    I should have also asked if you set the textbox DecimalPlaces property.

    Try Fixed as Format and 2 as DecimalPlaces.
    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.

  5. #5
    bgwool is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Posts
    29
    This worked. Thanks for your help!

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

Similar Threads

  1. Rounding
    By Rhubie in forum Queries
    Replies: 3
    Last Post: 05-30-2013, 10:55 AM
  2. Rounding numbers
    By jlgray0127 in forum Forms
    Replies: 5
    Last Post: 03-02-2012, 12:55 PM
  3. rounding down
    By markcranmer in forum Queries
    Replies: 1
    Last Post: 10-11-2011, 09:43 AM
  4. Rounding
    By BLD21 in forum Reports
    Replies: 5
    Last Post: 06-20-2011, 01:06 PM
  5. Rounding off
    By Alex Motilal in forum Access
    Replies: 4
    Last Post: 12-20-2009, 12:47 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