Results 1 to 6 of 6
  1. #1
    BLD21 is offline Advanced Beginner
    Windows 2K Access 2007
    Join Date
    Apr 2011
    Posts
    55

    Rounding

    access 2007,

    I am having a rounding problem. I have a field that is set for [Total1] - [Total2]. Example $16.93 - $12.74 should = $4.19. However, it seems to be rounding up to $4.20. Is there any way to prevent this? I tried using the Round function but it didn't help.

    Thanks!


    Bruce D.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What DataType are your fields? Where are you doing the calculation? On a form, in a query?

  3. #3
    BLD21 is offline Advanced Beginner
    Windows 2K Access 2007
    Join Date
    Apr 2011
    Posts
    55
    The datatype fields are set for currency, 2 decimal places. The calculation is performed in a report using a unbound text field. I do have the option of using in a query as this is the source for the report as well. I've read something about "Bankers Rounding". I am wondering if I should change the data types from currency to something else or would I have to create a function?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Any chance you could post your db?

  5. #5
    BLD21 is offline Advanced Beginner
    Windows 2K Access 2007
    Join Date
    Apr 2011
    Posts
    55
    Thanks RG but I have it figured out. It seems one of my excel import files had one of the fields formatted to a general number. I changed it to currency and reimported. My calcuation looks fine now with the rounding function.

    BD.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Excellent! Thanks for posting back with your success.

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

Similar Threads

  1. Expression Rounding
    By Scorpio11 in forum Queries
    Replies: 6
    Last Post: 03-17-2011, 04:25 PM
  2. Rounding problem
    By chavez_sea in forum Access
    Replies: 6
    Last Post: 03-09-2011, 09:01 PM
  3. rounding digits
    By giladweil in forum Access
    Replies: 1
    Last Post: 09-01-2010, 03:11 AM
  4. Rounding problem
    By jgelpi16 in forum Queries
    Replies: 1
    Last Post: 04-06-2010, 10:27 AM
  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