I am a little baffled with this error... here is my code:
If I change it to...
... it will return the month name if the condition is true, but obviously an integer value if it is not.
Why is using MonthName in the True and False clauses causing an #Error?
The actual error output is:
[rsRuntimeErrorInExpression] The Value expression for the textbox ‘textbox4’ contains an error: Argument 'Month' is not a valid value.
Code:
=IIF(
Month(Now)+7 > 12,
MonthName(Month(Now)+7-12),
MonthName(Month(Now)+7)
)
If I change it to...
Code:
=IIF(
Month(Now)+7 > 12,
MonthName(Month(Now)+7-12),
Month(Now)+7
)
... it will return the month name if the condition is true, but obviously an integer value if it is not.
Why is using MonthName in the True and False clauses causing an #Error?
The actual error output is:
[rsRuntimeErrorInExpression] The Value expression for the textbox ‘textbox4’ contains an error: Argument 'Month' is not a valid value.