Results 1 to 2 of 2
  1. #1
    jsimard is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    28

    Display Age in Years, Months, Days

    I have created a unbound text box with



    =DateDiff("yyyy",[Birthdate],Now())+Int(Format(Now(),"mmdd")<Format([Birthdate],"mmdd"))

    to display the age of the client.

    Is there a way to display the results to say if your birthdate is March 17, 1978 your age is "33 years 10 months 1 days"

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    There are many subroutines in VBA to calculate ages.

    Check these out:

    The Access Web:
    http://access.mvps.org/access/datetime/date0001.htm

    from Rogers Access Library:
    http://www.rogersaccesslibrary.com/forum/topic215.html

    -------------------------------------------------
    Googling "Calculate age in vba": (several pages of sites)

    http://support.microsoft.com/kb/290190

    *** http://www.cpearson.com/excel/DateTimeVBA.htm (lots of date calculations PLUS how you want the age calc to display)

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

Similar Threads

  1. Have query Display Days in Order
    By jo15765 in forum Queries
    Replies: 3
    Last Post: 09-27-2011, 08:59 AM
  2. Adding months to years in queries
    By TonyB in forum Queries
    Replies: 2
    Last Post: 07-29-2011, 09:29 AM
  3. Replies: 1
    Last Post: 06-09-2011, 09:15 AM
  4. Replies: 1
    Last Post: 11-12-2010, 01:16 AM
  5. Replies: 2
    Last Post: 04-27-2010, 01:25 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