Using Access 2003
The fiscal year is October 1 through September 30.
tblAttendance holds the data re meetings attended by members.
The user selects two dates in order to get attendance data between those dates.
What I want to do is determine whether or not the date range falls within the proper fiscal year.
Following is the query column
What this is supposed to do is...
1. If the Month in which we are currently is less than 9 (September) the query checks between October 1 one year ago and September 30 of this year.
2. However, if the Month in which we are currently is October through December, the query checks between October 1 of the current year and September 30 of the next year.
Does the code make sense in that regard?
Thanks.
Tom
The fiscal year is October 1 through September 30.
tblAttendance holds the data re meetings attended by members.
The user selects two dates in order to get attendance data between those dates.
What I want to do is determine whether or not the date range falls within the proper fiscal year.
Following is the query column
Code:
IIf(Month(Date())<=9,Between DateSerial(Year(Date()-1),10,1) And DateSerial(Year(Date(),9,30),Between DateSerial(Year(Date(),10,1) AND DateSerial(Year(Date()+1),9,30)
What this is supposed to do is...
1. If the Month in which we are currently is less than 9 (September) the query checks between October 1 one year ago and September 30 of this year.
2. However, if the Month in which we are currently is October through December, the query checks between October 1 of the current year and September 30 of the next year.
Does the code make sense in that regard?
Thanks.
Tom