I am trying to set a default value in a 4 char column using the following code but am receiving a run time error.
IIf(Month(Date())>=10,Str$((Year(Date())+1)),Str$(Year(Date())))
The intent is to create a federal fiscal year based on the month the row is created.
If the month >= 10 then get the year from the current date and add one otherwise get the year from the current date.
The value will be place in a char column.
I've tried using the Str and Str$ functions. Not sure of the difference between them if there is any.
Thanks
IIf(Month(Date())>=10,Str$((Year(Date())+1)),Str$(Year(Date())))
The intent is to create a federal fiscal year based on the month the row is created.
If the month >= 10 then get the year from the current date and add one otherwise get the year from the current date.
The value will be place in a char column.
I've tried using the Str and Str$ functions. Not sure of the difference between them if there is any.
Thanks