colincliff
New member
- Local time
- Today, 11:39
- Joined
- Aug 19, 2009
- Messages
- 3
Hi. I'm not an access expert by any means, but i have some experiance at building basic databases. I am trying to make a basic pupil registration/attendance database in the U.K.
I need an expression that will calculate a childs school year (grade) based on their date of birth.
In England, the cut-off date for school entry is 1 September; children must start school in the academic year during which they will become 5 years old. My expression needs to take this into account when calculating their school year.
For example a child born 31st August 1996 will be in school year 8, but a child born 1st Sept 1996 will be school year 7.
I hope this makes sense!
i have tried to use the expression below, however this doesnt seem to take into account whether the dob occurs before or after 1st sept.
=DateDiff("yyyy",[hck_dob],DateSerial(Year(Date())+(Format(Date(),"ddmm")<"0109"),1,9))-5
any ideas would be appreciated!
I need an expression that will calculate a childs school year (grade) based on their date of birth.
In England, the cut-off date for school entry is 1 September; children must start school in the academic year during which they will become 5 years old. My expression needs to take this into account when calculating their school year.
For example a child born 31st August 1996 will be in school year 8, but a child born 1st Sept 1996 will be school year 7.
I hope this makes sense!
i have tried to use the expression below, however this doesnt seem to take into account whether the dob occurs before or after 1st sept.
=DateDiff("yyyy",[hck_dob],DateSerial(Year(Date())+(Format(Date(),"ddmm")<"0109"),1,9))-5
any ideas would be appreciated!