Calculate a Person's Age Using DateSerial Function

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 5

More information:
An alternative to the other age function on the site. This one requires less code, though the other one is a bit more sophisticated in terms of raising errors and in that it allows you to specify a RelativeTo date.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: