I have an issue the boundary values of my @datefrom parameter that runs a daily report.
This is how far I have got with it, but returns an error.
DateFrom
=IIF(DatePart("d",1,0,0),(DateAdd("m", -1, DateSerial(Year(Now), Month(now), 1))),(DateSerial(Year(Now), Month(now), 1)))
Error Message
Argument 'DateValue' cannot be converted to type 'Date'
The expression is meant to allow for the boundary date change from the last day of the month to the first of the next.
Any help would be appreciated. Thanks in advance.
30-jun-2014
,01-jul-2014
,02-jul-2014
, what values do you expect from the expression? – Ian PrestonDateTo
parameter/expression also be required? Or are you specifically looking for a string combining two dates as per your comment? – Ian Preston