Reverse UK School Year (1 Viewer)

Status
Not open for further replies.

ozinm

Human Coffee Siphon
Local time
Today, 20:25
Joined
Jul 10, 2003
Messages
121
Code:
' given a persons date of birth and a School Year (i.e. Year 12 = Lower 6th) this function
' will report what year the person will be in that school level
Function YearSchoolLevelIs(SchoolLevel As Integer, DOB As Date) As Integer
  YearSchoolLevelIs = Year(DOB) + 5 + SchoolLevel + IIf(Month(DOB) > 8, 1, 0)
End Function
 
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom