I wonder if someone can help me with this? I am trying to get my form to automatically check when a person becomes a senior from a junior. I ahe two option buttons Junior and Senior and a date of birth box. I am trying to ask if the time span is less than 16 then the person is a junior if the time span is greater than 16 then the person is a senior. I need this to auto update the two option boxes when the person attains the age of 16. This is my code so far but its not right!
Private Sub DOB_AfterUpdate()
'If the date entered is less than 16 years before today's date then they are a junior
If Me.DOB > DateAdd("yyyy", -16, Date) Then
Me.Junior = True
Me.Senior = False
End If
If Me.DOB < DateAdd("yyyy", 16, Date) Then
Me.Senior = True
Me.Junior = False
End If
Private Sub DOB_AfterUpdate()
'If the date entered is less than 16 years before today's date then they are a junior
If Me.DOB > DateAdd("yyyy", -16, Date) Then
Me.Junior = True
Me.Senior = False
End If
If Me.DOB < DateAdd("yyyy", 16, Date) Then
Me.Senior = True
Me.Junior = False
End If