Automatically populate Fiscal Year field (1 Viewer)

mitchem1

Registered User.
Local time
Today, 11:31
Joined
Feb 21, 2002
Messages
153
Would it be possible to populate a Fiscal Year field by somehow looking at the system date? Our fiscal year runs from July 1 to June 30. What I want to happen is if the month is January through June, I want the field to display the current year. If the month is July through December, I want the field to display the current year + 1.
Thank you for your help.
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 09:31
Joined
Aug 30, 2003
Messages
36,132
You can use the Month() and Date() functions to get the month. Test for <7 and populate your field accordingly.
 

mitchem1

Registered User.
Local time
Today, 11:31
Joined
Feb 21, 2002
Messages
153
Sorry, I am no expert. Is something like this the right idea?

IIf Month(<date>) < 7, Year(<date>), Year(<date>) + 1
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 09:31
Joined
Aug 30, 2003
Messages
36,132
Conceptually, sure.
 

Users who are viewing this thread

Top Bottom