Reputation: 55
=FormatDateTime(DateAdd(DateInterval.Year, -1, Now()), DateFormat.ShortDate)
I get an error stating "The property ‘DefaultValue’ of report parameter ‘MIN_DATE’ doesn't have the expected type. (rsParameterPropertyTypeMismatch)"
Upvotes: 0
Views: 753
Reputation: 432
FormatDateTime returns a string that represents the date, if you have the parameter set its data type to DateTime it will throw this error, you can either change the parameter datatype to string or you can just use
=DateAdd(DateInterval.Year, -1, Now())
Upvotes: 1