Results 1 to 4 of 4
  1. #1
    matteozz is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2015
    Posts
    9

    Round up to hundreds into a query

    Hello everyone!


    I'm really in a bind. Basically I built a query in which there are some formulas that generate data, they make very simple calculations. At the end I get a result but I want to round up to the hundreds automatically: 60 becomes 100, 110 becomes 200, 150 becomes 200, 5201 became 5300 and so on ...

    Thank you for help!

  2. #2
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,928
    try

    (int(myvalue/100)+1)*100

  3. #3
    matteozz is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2015
    Posts
    9
    Thanks! It runs! I also post another formula
    Code:
    =INT((Value/100 + 0.99))*100

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    FYI, "Value" is a reserved word in Access and shouldn't be used as object names. (which is why Paul used "myvalue")

    For a list of reserved words, see http://www.allenbrowne.com/AppIssueBadWord.html

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

Similar Threads

  1. Always Round Up (Never Down)
    By Derrick T. Davidson in forum Queries
    Replies: 3
    Last Post: 07-23-2013, 10:08 PM
  2. Round up issue?
    By Hammer in forum Access
    Replies: 3
    Last Post: 12-13-2012, 12:46 PM
  3. round up
    By Rhubie in forum Access
    Replies: 1
    Last Post: 08-29-2012, 05:14 PM
  4. Help! - Going round in Circles
    By Sleepymum in forum Database Design
    Replies: 11
    Last Post: 02-01-2011, 09:15 AM
  5. Round Up/Down 4 Decimals to 2
    By newbie in forum Access
    Replies: 6
    Last Post: 10-18-2010, 02:58 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