Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Parameter not valid for its type

Author  Topic 

charles101
Starting Member

16 Posts

Posted - 2007-03-01 : 19:14:02
Hi,

Im creating a new report I have the following SQL Statement
in a dataset

SELECT [Outbound Samples].*, [Sample Results].*, [WP Sample Results].*
FROM ([Sample Results] RIGHT JOIN [Outbound Samples] ON [Sample Results].[Sample Number] = [Outbound Samples].[Sample Number]) LEFT JOIN [WP Sample Results] ON [Sample Results].[Sample Number] = [WP Sample Results].[Sample Number]
WHERE [Outbound Samples].[Scheduled Date] >= @startdate AND [Outbound Samples].[Scheduled Date] <= @enddate;

I have the parameters startdate and enddate in my report off datatype - datetime - nonqueried

In my SQL database the scheduled date is also datatype datetime

Im trying to get the above data in the SQL statement too display between the certain date ranges startdate and enddate i supply...simple report however Im getting the error

The value provide for the report parameter 'Startdate' is not valid for its type when i view the report

Im not sure whats going on as the scheduled date is datetime and that what is using the parameter in the WHERE clause.

Im missing something for SSRI to understand!

Can someone please help?

charles101
Starting Member

16 Posts

Posted - 2007-03-01 : 20:19:41
did a bit off reading and it is a bug in VS2005..i changed the date and time short date too mm/dd/yyyy and the report works....if anyone knows a different way please post it as im in Australia and we use dd/mm/yyyy.
Go to Top of Page
   

- Advertisement -