Results 1 to 2 of 2

Thread: Cacluating age

  1. #1
    djverret
    Guest

    Cacluating age

    I have a quick question that I hope someone can help me with. I need to calculate the age of a person from the birthday. I have a table which records birthday and I want to create a field in a query which calculates the person's current age. I tried datediff("yyyy",now()-[Birthday]) but it doesn't take into account whether or not the birthday occurred this year. Can anyone suggest another method of determining age? Thanks in advance.
    D.J.

  2. #2
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Manassas, Virginia, USA
    Posts
    363
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cacluating age

    This will work: DateDiff("YYYY",[BirthdateField],Now())+
    Int(Format(Now(),"mmdd")<Format([BirthdateField],"mmdd"))
    Judy Jones, Computer Training Specialist
    Manassas, Virginia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •