Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating a Players Age

Status
Not open for further replies.

Sopman

Technical User
Mar 21, 2001
206
US
I'm keeping the database for little league. In "Forms" I have fields labeled "birthday", "league age", and "Apr 15, 2007".
What I would like to do is when the birthdate is enter I need that to subtract from Apr 15, 2007 to give me the league age of the player. Is there a way to calculate this?

Next year I'll update Apr15, 2007 to Apr 15, 2008, but will stay in the same field. This should increase every players age by 1.

Thank You,
Sopman
 
Like this?

Code:
DateDiff("yyyy",BirthDateField,#04/15/2007#)

Hope it helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
actually, the search should include the term "DOB", the common acroynym for date of birth. there are several to numerous threads regarding this topic, some of which point out the potential flaw in the above post.





MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top