P
p cooper
I want to display a load of ages on 1-APR- 04 ( in UK)
A query with 2 calculatd fields
Age(YRS): (DateDiff("m",[ChildsDoB],#01/04/2004#))/12
Age(MNTHS): (DateDiff("m",[ChildsDoB],#01/04/2004#)) MOD 12
eg
if the DoB is 4/4/86 this comes out as 18 yrs 0 months
24/2/88 16 yrs 2 months
they shouldnt - in the first the 18th birthday is in 3 days time and
the age should be 17 yrs 11 months
in the secind it should be 16 yrs 1 month (2 months on 24th of the
month)
1. Whos problem is this
2. Any way around it ?
A query with 2 calculatd fields
Age(YRS): (DateDiff("m",[ChildsDoB],#01/04/2004#))/12
Age(MNTHS): (DateDiff("m",[ChildsDoB],#01/04/2004#)) MOD 12
eg
if the DoB is 4/4/86 this comes out as 18 yrs 0 months
24/2/88 16 yrs 2 months
they shouldnt - in the first the 18th birthday is in 3 days time and
the age should be 17 yrs 11 months
in the secind it should be 16 yrs 1 month (2 months on 24th of the
month)
1. Whos problem is this
2. Any way around it ?