Re: Groups by Age and Female, male
- From: John W. Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 23 Mar 2008 18:44:49 -0600
On Sun, 23 Mar 2008 10:33:54 GMT, "Totte via AccessMonster.com" <u42284@uwe>
wrote:
Okay I will try, in Swedish wrestling the group is change that year he/she is
8, 12, 15 or 17 years old. Here is an exampel from USA Wrestling <<
http://www.usawrestling.org/forms/Weights.pdf>> they have different agegroup
and groupname but the same system as in sweden.
ex, Mark is born 2000-03-20, he is 8 year, and this year 2008-01-01 he become
"Boy younger 8-11", and 2011-03-20 he will be 11 years old and he is still
"Boy younger 8-11".
In 2012-01-01 he will be (12 year during 2012) "Boy older 12-14".
NAME AGE OF YEAR GENDER CATEGORY
Mark 8 (this year) Male Boy younger 8-11
Robin 11 (this year) Male Boy younger 8-11
Viktor 12 (this year) Male Boy older 12-14
Anton 15 (this year) Male Man younger 15-17
I want the CATEGORY to change automatic, ex: between 8-11year he/she is Boy
younger/Girl younger and between 12-14year he/she is Boy older/Girl older.And
so on.....
Storing the fact that Mark is 8 this year is INCORRECT DESIGN, because it
requires that you edit the value in this field every year for every child!
If you instead store the fact that Mark was born in 2000, and Robin was born
in 1997, and Viktor was born in 1996 - by storing their birthdate - then you
can dynamically calculate the category for ANY person at ANY time, by using
DateDiff() to calculate their current age as of the time the query is
executed.
--
John W. Vinson [MVP]
.
- Follow-Ups:
- Re: Groups by Age and Female, male
- From: Totte via AccessMonster.com
- Re: Groups by Age and Female, male
- References:
- Groups by Age and Female, male
- From: Totte via AccessMonster.com
- Re: Groups by Age and Female, male
- From: John W . Vinson
- Re: Groups by Age and Female, male
- From: Totte via AccessMonster.com
- Re: Groups by Age and Female, male
- From: John W . Vinson
- Re: Groups by Age and Female, male
- From: Totte via AccessMonster.com
- Re: Groups by Age and Female, male
- From: John W . Vinson
- Re: Groups by Age and Female, male
- From: Totte via AccessMonster.com
- Groups by Age and Female, male
- Prev by Date: Re: Append Query Problem
- Next by Date: RE: Assigning Duplicate Values
- Previous by thread: Re: Groups by Age and Female, male
- Next by thread: Re: Groups by Age and Female, male
- Index(es):
Relevant Pages
|