I have the following expression to check parameter date values and replace from date if necessary:
=IIF(Parameters!FromDate.Value is nothing,
IIF(Parameters!ToDate.Value is nothing,
DateAdd("d",-30,Now()),
DateAdd("d",-30,Parameters!ToDate.Value)),
Parameters!FromDate.Value)
Only when the todate
is null, an error will get appear:
The added or subtracted value results in an un-representable datetime.
Did anybody face such a problem?