Results 1 to 4 of 4
  1. #1
    euphonium01 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    40

    Too many digits after decimal point!


    I have a Query that takes the 'Price' field, applies a 'Discount' field, which gives me the 'Discount Price'. All this works fine and I get the correct sum. However, after running the Query, and I click in the 'Discount Price' I see about 7 or 8 places after the decimal point. The 'Discount' calculation I'm using in the Query is: Discount Price: CCur([Price])*(1-[Discount])

    Sometimes, I do need to enter up to 4 decimal places in the Discount I apply, ie, 14.3815%. Is there a way I can 'round up' the sum to only 2 digits after the decimal point, even if I enter more than 2 decimal places in the Discount applied? I have set the Query Format properties to Decimal, and 2 Decimal places in the appropriate settings...I have also set the same property settings on the Form that the Query is used for, but, I still get the 7 or 8 digits?

    Hope this makes sense? Many thanks in anticipation...euphonium01.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    round() function

    Use google to research your concerns/questions.

    Try the link in my signature.

  3. #3
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Check out a UDF that works similar to the excel function RoundUp. just Round with money can cause you to lose pennies while round up will stop that noncents
    https://support.office.com/en-us/art...3-db171d0c42a7

  4. #4
    euphonium01 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    40
    Thanks to those who suggested using the Roundup function, worked a treat.

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

Similar Threads

  1. Replies: 7
    Last Post: 12-23-2015, 01:02 PM
  2. Replies: 2
    Last Post: 11-16-2015, 08:13 AM
  3. Delete Zero after decimal point!
    By cuongmyh in forum Forms
    Replies: 1
    Last Post: 02-26-2015, 07:06 AM
  4. Convert decimal comma to decimal point
    By Hans Karlsson in forum Programming
    Replies: 3
    Last Post: 06-30-2014, 01:56 PM
  5. Too many digits!
    By Degs29 in forum Access
    Replies: 1
    Last Post: 05-30-2013, 12:53 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