Results 1 to 9 of 9
  1. #1
    djclinton15 is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Nov 2015
    Posts
    123

    How to calculate # of months past a date?

    Hi. Is there any type of expression that will show me the # of months past a date?

    I.E.
    10/30/2016 – 4-months



    Any advice/suggestions will be greatly appreciated! Thanks in advanced.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Check out the DateDiff() function.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Datediff sounds like it might be what you want.


    Sent from my iPhone using Tapatalk

  4. #4
    djclinton15 is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Nov 2015
    Posts
    123
    Thanks all for responding to my thread. I checked out several DateDiff websites & couldn't find what I'm looking for. Can any one suggest to me any DateDiff websites?

  5. #5
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Datediff("mm", date, yourdate) returns months between now and yourdate


    Sent from my iPhone using Tapatalk

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641

  7. #7
    djclinton15 is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Nov 2015
    Posts
    123
    Sorry, neither site helped me figure out what code/expression to retrieve the results as I illustrated above. I'm not a "programmer" & don't understand how to write out codes/expressions. This is why I came here for assistance the results I'm looking for. Not saying that you guys haven't been helpful; quite the contrary. I cannot express what admiration for those who volunteers their time (& wisdom) helping others with Access on this site. In today's world not many people volunteers ther time without a price. I think you guys are great!

    I just get overly frustrated when I can't achieve what I set out for.

  8. #8
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    You say you need to say how many months it is after a date. Is the date in a table? A form?


    Sent from my iPhone using Tapatalk

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Both sites included examples. It would make more sense for you to posted what you're trying, and describe how it fails. You haven't even said how/where you're trying to use it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 02-16-2016, 05:02 PM
  2. Replies: 3
    Last Post: 02-23-2014, 02:06 PM
  3. Replies: 6
    Last Post: 11-25-2013, 10:53 AM
  4. Replies: 1
    Last Post: 11-12-2010, 01:16 AM
  5. Replies: 11
    Last Post: 08-04-2010, 04:26 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