Calculating age in a label or text box on a form

G

Guest

Hello All,
I have a text box for birthdate for a user to enter the birthdate and I want
to the age for the user to be automatically calcuated and displayed in
another label called "Age." What formula can I use?
Missy
 
G

Guest

=DateDiff("yyyy", [Birthdate], Now())+ Int( Format(now(), "mmdd") < Format(
[Birthdate], "mmdd") )
 
G

Guest

Thank You Dennis. It worked perfectly .

Dennis said:
=DateDiff("yyyy", [Birthdate], Now())+ Int( Format(now(), "mmdd") < Format(
[Birthdate], "mmdd") )


Umm Husina said:
Hello All,
I have a text box for birthdate for a user to enter the birthdate and I want
to the age for the user to be automatically calcuated and displayed in
another label called "Age." What formula can I use?
Missy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top