How to create two functions to calculate age in months and in years in Microsoft Access (290190)
The information in this article applies to:
- Microsoft Office Access 2003
- Microsoft Access 2002
This article was previously published under Q290190 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
2000 version of this article, see
210522. For a Microsoft Access 97 version of this article,
see
290190. SUMMARY This article shows you how to create two functions that you
can use 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 additional information
about how to obtain this sample file, click the following article number to
view the article in the Microsoft Knowledge Base: 207626
ACC2000: Access 2000 sample queries available in Download Center
REFERENCESFor more information about date
differences, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type datediff function in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 6/9/2004 |
---|
Keywords: | kbDateTime kbfunctions KbVBA kbProgramming kbhowto KB290190 |
---|
|