ACC2000: Two Functions to Calculate Age in Months and Years (210522)
The information in this article applies to:
This article was previously published under Q210522 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
For a Microsoft Access 2002 version of this article, see 290190.
SUMMARY
This article shows you how to create two functions to calculate the age of a person or thing based on a specified date.
NOTE: You can see a demonstration of the technique that is used in this article in the sample file Qrysmp00.exe. For information about how to obtain this sample file, please see the following article in the Microsoft
Knowledge Base:
207626 ACC2000: Access 2000 Sample Queries Available in Download Center
REFERENCESFor more information about date differences, click Microsoft Access Help on the Help menu, type datediff function example in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbhowto kbProgramming KB210522 |
---|
|