Originally Posted by
RedGoneWILD
no, the fiscal year is a string like "2009-10" or "2010-11"
im assuming month(date) returns an integer...so since it's august, that would return 8 correct? and month(date) goes off of the system time right?
i should be able to figure something out to make it work
thanks
That's correct, Month() returns an the integer of the month. August would be 8, and Date pulls the date from the system date.
Adapting my previous code to fit your fiscal year format:
Code:
If Month(Date) < 7 then
[ComboboxName].Value = CStr(Year(Date) - 1) & "-" & Right(Year(Date),2)
Else
[ComboboxName].Value = Year(Date) & "-" & Right(CStr(Year(Date)+1),2)
End If