Results 1 to 2 of 2
  1. #1
    markcranmer is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    1

    rounding down

    Hi all,



    I want to replicate the following Excel formula in an Access query:


    =ROUNDDOWN((MAILING_DATE-PURCHASE_DATE)/365,0) Number of years


    The closest I've got is:

    appliance age: Round(([Mailing Date]-[PURCHDATE])/365,0)

    but as you can see, the expression doesn't round 'down'.

    I have attempted to implement a Int(100 * [MyField]) / 100 type approach, but the results don't tally with the Excel results.

    Many thanks,

    Mark

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    And what do you get with Int(([Mailing Date]-[PURCHDATE])/365)

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

Similar Threads

  1. Rounding
    By BLD21 in forum Reports
    Replies: 5
    Last Post: 06-20-2011, 01:06 PM
  2. Expression rounding
    By Scorpio11 in forum Queries
    Replies: 2
    Last Post: 03-07-2011, 01:29 PM
  3. rounding digits
    By giladweil in forum Access
    Replies: 1
    Last Post: 09-01-2010, 03:11 AM
  4. Rounding problem
    By jgelpi16 in forum Queries
    Replies: 1
    Last Post: 04-06-2010, 10:27 AM
  5. Rounding off
    By Alex Motilal in forum Access
    Replies: 4
    Last Post: 12-20-2009, 12:47 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