Results 1 to 7 of 7
  1. #1
    arfo is offline Novice
    Windows 7 Access 2003
    Join Date
    Nov 2010
    Posts
    4

    Number of decimals in sum function

    This seems to be the easiest thing, but I cannot find any information on this.

    I have a table with a number field Kellyfraction.



    SELECT kellyfraction FROM ddbets;
    displays the values as expected with as many decimals as they are stored.


    SELECT Sum(kellyfraction)FROM ddbets;
    displays the sum rounded to two decimals.

    How do I get the result of teh sum function to be displayed with the number of decimals to my liking?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    My search says the results vary depending on the input and expand when needed. It shows no rounding involved.

  3. #3
    arfo is offline Novice
    Windows 7 Access 2003
    Join Date
    Nov 2010
    Posts
    4
    Attacking screenshots to illustrate the problem.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I see the problem. How about zipping up a sample db and posting it so we can play with it?

  5. #5
    arfo is offline Novice
    Windows 7 Access 2003
    Join Date
    Nov 2010
    Posts
    4
    That would be most kind of you.

  6. #6
    arfo is offline Novice
    Windows 7 Access 2003
    Join Date
    Nov 2010
    Posts
    4
    anyone have a clue?

  7. #7
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    because the total is exactly 0.030000000

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

Similar Threads

  1. Input mask frustration (decimals)
    By Remster in forum Forms
    Replies: 2
    Last Post: 10-29-2010, 09:33 AM
  2. Round Up/Down 4 Decimals to 2
    By newbie in forum Access
    Replies: 6
    Last Post: 10-18-2010, 02:58 PM
  3. Making New Record Number Next Numerical Number
    By jhillbrown in forum Access
    Replies: 1
    Last Post: 03-10-2010, 11:06 AM
  4. Want function to get current function name
    By Davis DeBard in forum Programming
    Replies: 2
    Last Post: 08-13-2009, 05:02 AM
  5. Sum Of Positive Number and Negative Number
    By maysamab in forum Reports
    Replies: 1
    Last Post: 10-20-2008, 04:06 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