cancel
Showing results for 
Search instead for 
Did you mean: 

Date problems

Former Member
0 Kudos

I am using MS SQL 2008 express as database. Date fields set to Date. when I type in my date parameters in CR I get all records. I changed the date field in CR to date. I am using MS visual studio 2010 pro.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Do the reports work in any CR Designer?

What version of CR were the reports created in?

What version are the CR assemblies in your app?

Are you using the MS SQL 2008 - SQL Native 10 client? (A requirement...)

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Answers (2)

Answers (2)

0 Kudos

Format your date like this:

rpt.SetParameterValue("MyDateParm", Convert.ToDateTime(parmDate));

Don

ido_millet
Active Contributor
0 Kudos

Having a date parameter is not enough to filter the report data.  You must use that parameter in a record selection formula.