You don't put the formula in the Form Field Options box, you paste it from
the original source (not from here - use ALT+F9 to display the code) into
the document outside the form field at the place you wish the information to
be revealed. Remove the ASK field, so that the result appears as below. In
the form field that collects the date, change its bookmark name to BirthDate
and set the calculate on exit button
When you tab out of the birthdate field the inserted field displays
"If your Date of Birth was <Birthdate>, then your age is <Years>, <Months>
and <Days>
You can tailor this to your requirements by editing the latter part of the
construction which pastes the above.
{QUOTE{SET by {BirthDate \@ yyyy}}{SET bm {BirthDate \@ M}}{SET bd
{BirthDate \@ d}}{SET yy {DATE \@ yyyy}}{SET mm {DATE \@ M}}{SET dd {DATE \@
d}}{SET
md{=IF((mm=2),28+(mm=2)*((MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0)),31-(
(mm=4)+(mm=6)+(mm=9)+(mm=11)))}}{Set
Years{=yy-by-(mm<bm)-(mm=bm)*(dd<bd)}}{Set
Months{=MOD(12+mm-bm-(dd<bd),12)}}{Set Days{=MOD(md+dd-bd,md) \# 0}}"If your
Date of Birth was {Birthdate \@ "d MMMM yyyy"}, then your age is {Years}
Year{IF{Years}= 1 "" s}, {Months} Month{IF{Months}= 1 "" s} and {Days}
Day{IF{Days}= 1 "" s}."}
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>