Results 1 to 3 of 3
  1. #1
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    Aging report rounding days late

    Hello all!

    How do I go about rounding a standard number? I've searched the forums and haven't been able to find anything. I have my query which determines the number of days late an account is.
    Code:
    aging: DateDiff("d",[duedate],Date())
    which results in (depending on the date it is run) 32, 62, etc. I want to use the field in statements, but want it to say "30", "60", "90".

    Thanks in advance!

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    aging = (aging \ 10 ) * 10

    The backslash is the operator for integer division (32 \ 10 = 3 )

    This always rounds down, so 39 \ 10 = 3 as well.

  3. #3
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    Talking

    Quote Originally Posted by john_g View Post
    aging = (aging \ 10 ) * 10

    the backslash is the operator for integer division (32 \ 10 = 3 )

    this always rounds down, so 39 \ 10 = 3 as well.
    beautiful! Thank you john g!!!

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

Similar Threads

  1. Aging Report
    By Jblackbelt in forum Reports
    Replies: 10
    Last Post: 10-08-2014, 08:02 PM
  2. Case Aging report
    By mavisyew in forum Reports
    Replies: 1
    Last Post: 09-02-2014, 05:35 AM
  3. Rounding down in a report field
    By drnld in forum Access
    Replies: 4
    Last Post: 05-27-2014, 05:42 PM
  4. Time comparison based on date - Late Report
    By gryphin81 in forum Reports
    Replies: 8
    Last Post: 04-25-2014, 11:35 AM
  5. Aging A/P function
    By nim73 in forum Programming
    Replies: 0
    Last Post: 05-07-2009, 01:23 PM

Tags for this Thread

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