문제

I have a date range as parameters on my report, @dt_begin and @dt_end. On the header of the report I would like to display "report run from @dt_begin to @dt_end". with the actual date values in it, example:

"Report run from 14-Oct-2013 to 16-Oct-2013".

How can I do that? thanks and regards Marcelo

도움이 되었습니까?

해결책

In expressions, refer to parameter values using Parameters!param.Value.

In your example, add an expression similar to this to a textbox in the header:

="Report run from " & Format(Parameters!dt_begin.Value, "dd-MMM-yyyy")
  & " to "
  & Format(Parameters!dt_end.Value, "dd-MMM-yyyy")

All it's doing is formatting your parameters and adding them to a larger string.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top