I set Report Parameters ,
Properties
Name : StartDate
Data Type : DateTime
Prompt : StartDate
Default values = Format(Today(),"yyyy/MM/dd")
But have error (An error occurred during local report rpocessing. The properly "DefaultValue" of report parameter 'EndDate' doesn't have the expected type.)
The Result show : like "2007/05/01"
Thanks help
Moving to SQL Server Reporting Services forum. This is not an SSIS issue.|||Hi,
I think the Format function converts your value into String datatype & that is why you're getting the error.
Just use CDate of your expression, that is:
CDate(Format(Today(),"yyyy/MM/dd")
That should get rid of the error.
-Aayush.
|||=CDate(Format(Today(),"yyyy/MM/dd")
had error
[rsCompilerErrorInExpression] The Value expression for the report parameter ‘endDate’ contains an error: [BC30198] ')' expected.
Thanks help
|||Oops.. I missed out a bracket Sorry for that.
Try =CDate(Format(Today(),"yyyy/MM/dd"))
-Aayush
|||Thanks You very much|||Thanks all
The command is right, but I look in client pc, i see the date is "06/11/2007"
The =Cdate(format(today(),"yyyy/MM/dd")) could not work.
|||You're right I overlooked the fact that CDate converts it back to the default date format. So this fix does not work. Actually the expression =Format(Today(),"yyyy/MM/dd") would work but it would require you to change the Data Type of the parameter from 'DateTime' to 'String'. So I don't think it is very feasible.|||Thanks
But not work
No comments:
Post a Comment