Usuing CR 7 with SQL database.
I am trying to create a formula that displays the previous year if certain conditions are true.
For example:
X is number field
if X > month(CurrentDate) then ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November",
"December"] [X] + " " + ToText((CurrentDate -1),"yyyy"
else
["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November",
"December"] [X] + " " + ToText((CurrentDate),"yyyy"
The problem is that even though X is greater than month(CurrentDate) it still does not give me last year. It always shows the current year.
Thanks.
I am trying to create a formula that displays the previous year if certain conditions are true.
For example:
X is number field
if X > month(CurrentDate) then ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November",
"December"] [X] + " " + ToText((CurrentDate -1),"yyyy"
else
["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November",
"December"] [X] + " " + ToText((CurrentDate),"yyyy"
The problem is that even though X is greater than month(CurrentDate) it still does not give me last year. It always shows the current year.
Thanks.