School year automatic generation (1 Viewer)

Mr. SLP

Registered User.
Local time
Today, 04:13
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
 

Mark_

Longboard on the internet
Local time
Today, 02:13
Joined
Sep 12, 2017
Messages
2,111
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

Top Bottom