calculating age

AI Training: For Busy Decision Makers & Professionals Book now

Forum home » Delegate support and help forum » Microsoft Access Training and help » Calculating Age

Calculating Age

resolvedResolved · Low Priority · Version 2003

Janice has attended:
Access Introduction course
Access Intermediate course
Access Advanced course

Calculating Age

How do you calculate age from DOB?

RE: Calculating Age

Dear Janice

Thank you for attending Access courses!! I hope you enjoyed the course and benefited from it.

Yo calculate the age from DOB please follow these steps:

1. Create a query in design view

2. Download all the fields that you wich to see in the result view

3. On the new field in the grid box of the query design view type in the following:

Age: (Date()-[dob])/365


Age is the name if the new field

Date() is the current date

[dob] is the date of birth field

/365 is ensure that the result is in years

If you see too many digits after the decimal places please right-clcik on the age filed and change the decimal places to 0.


I hope this has answered your query.

If this has answered your query then I would request you to please mark the question as resolved!! If not and you have a specific question related to this then please post it as a new question and we should be able to provide you the solution for it!!

Kindest Regards


Rajeev Rawat
MOS Master Instructor 2000 and 2003
MCAS Master Instructor 2007

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Access tip:

Remove spaces in a table

If you have a table that has too many space marks littered around, you can create a update query and use the trim function to get rid of any excess space marks

View all Access hints and tips


Server loaded in 0.12 secs.