Okay, forgive me, but I'm missing something obvious!
I have a field on a form to capture a birthdate (field name = Ch1_DOB). I need to convert that date to the child's age. I found a function, but I'm just not getting how to use it! I know my field name should go in there somewhere, but I'm not sure where, & for the life of me I can't seem to get the function to run!
Sorry - it's been almost a year since I've been called on to do Access...bear with me! I'm using Access 2002.
Here is the function code as taken from the FAQ:
Function Age (Birthdate as Date) as Integer
Age = DateDiff("YYYY", Birthdate, Date) + _
(Date < DateSerial(Year(Date), Month(Birthdate), Day(Birthdate)))
End Function
Help?
Thanks!
I have a field on a form to capture a birthdate (field name = Ch1_DOB). I need to convert that date to the child's age. I found a function, but I'm just not getting how to use it! I know my field name should go in there somewhere, but I'm not sure where, & for the life of me I can't seem to get the function to run!
Sorry - it's been almost a year since I've been called on to do Access...bear with me! I'm using Access 2002.
Here is the function code as taken from the FAQ:
Function Age (Birthdate as Date) as Integer
Age = DateDiff("YYYY", Birthdate, Date) + _
(Date < DateSerial(Year(Date), Month(Birthdate), Day(Birthdate)))
End Function
Help?
Thanks!