I use the following to calculate age based on the birthdate entered on a form
Expr1: IIf(IsNull([Birthdate]),Null,IIf(CDate(Month([birthdate]) & "/" & Day([birthdate]) & "/" & Year(Date()))>Date(),DateDiff("yyyy",[birthdate],Date())-1,DateDiff("yyyy",[birthdate],Date())))
It works fine until a birthday year past 1930 is entered. When the birth year is 1929 it returns -25 as the age. Any suggestions?
Expr1: IIf(IsNull([Birthdate]),Null,IIf(CDate(Month([birthdate]) & "/" & Day([birthdate]) & "/" & Year(Date()))>Date(),DateDiff("yyyy",[birthdate],Date())-1,DateDiff("yyyy",[birthdate],Date())))
It works fine until a birthday year past 1930 is entered. When the birth year is 1929 it returns -25 as the age. Any suggestions?