School year automatic generation

Mr. SLP

Registered User.
Local time
Yesterday, 18:39
Joined
Dec 23, 2017
Messages
56
I am working on a report and need it to show the current school year on it. So “2017-18” if it was printed between Aug 2017 and June 2018. Any suggestions on how I would accomplish this?


Sent from my iPhone using Tapatalk
 
For the logic, you would be looking for something like the following;

Code:
IF Month(Now() > 7 then
   SchoolYear = Year(Now()) & " - " & Year(Now()) + 1
Else
   SchoolYear = Year(Now()) - 1 & " - " & Year(Now())
End If
 

Users who are viewing this thread

Back
Top Bottom