Results 1 to 3 of 3
  1. #1
    crxftw is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    30

    Rounding number up to half hour


    Hello, I've been trying to look everywhere but can't seem to find a solution how I can get my numbers rounded like that for example:

    2.01 to 2.24 = 2
    2.25 to 2.74 = 2.5
    2.75 to 2.99 = 3

    I would like to that in text box control source if possible, the value I need to get rounded comes from:

    [Entitlement]+Sum([TotalHolidayHours])-[txtHolidayUsed]

    Which for example is 23.1 right now, but in that case I'd need it to be 23. If it would be 23.3 then it's 23.5 already.

    Thanks.

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    Here is a solution in a query. You can apply the same expression in an unbound text box in a form if that is where you want it. See attached.

  3. #3
    crxftw is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    30
    Thanks, but found a solution that suits better for me:

    =Round(2*([Entitlement]+Sum([TotalHolidayHours])-[txtHolidayUsed]),0)/2

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

Similar Threads

  1. Replies: 5
    Last Post: 07-29-2011, 12:55 AM
  2. Time minus one for hour.
    By brianb in forum Queries
    Replies: 2
    Last Post: 03-09-2011, 11:02 AM
  3. Replies: 2
    Last Post: 03-02-2011, 01:43 PM
  4. Round up time half an hour
    By JBM18 in forum Queries
    Replies: 2
    Last Post: 12-09-2010, 11:56 AM
  5. run a half dozen reports from 1 click
    By techexpressinc in forum Reports
    Replies: 2
    Last Post: 12-17-2009, 11:20 AM

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