Toby1kenobe
Instructor
I'm trying to find a students' age using this:
Private Sub DOB_AfterUpdate()
Age = DateDiff("yyyy", DOB, Now)
End Sub
if in the DOB (date of birth) field on the form i put 1/1/90
i get the value 103. I'm not great at maths but i know this isnt even close!!
Can anybody help, otherwise I'll be 103 before i sort it!
Anyhelp as always greatly appreciated
Toby
Private Sub DOB_AfterUpdate()
Age = DateDiff("yyyy", DOB, Now)
End Sub
if in the DOB (date of birth) field on the form i put 1/1/90
i get the value 103. I'm not great at maths but i know this isnt even close!!
Can anybody help, otherwise I'll be 103 before i sort it!
Anyhelp as always greatly appreciated
Toby