Hello,
I am using CR 8.5, SQL Server, OLE Db driver. I have a DateTime/String problem that I'm probably over thinking, but......I have a Db field ({Corrected_Date}) that is a String. The format disregards leading zeros except for minutes and seconds.: 1/1/2006 2:09:07AM 10/2/2005 2:43:00PM etc.... I am searching for records corrected between to Dates, or DateTimes, (2 parameters: FromDate & ToDate). The application generating the Crystal Report wants to querie with the String format, but I'd like to make it easier for endusers to use a Date or DateTime parameter. Then they click on a calendar button or just enter say, 1/1/2006 & 1/20/2006. The helpdesk guy said to use DateValue to convert the field.
I've tried many combos between formulas and parameter types, but I return errors or blank reports. Do I set the parameters as dates or datetimes and convert them to strings in the record selection, or vice versa, or ? Thank you.
RIS
I am using CR 8.5, SQL Server, OLE Db driver. I have a DateTime/String problem that I'm probably over thinking, but......I have a Db field ({Corrected_Date}) that is a String. The format disregards leading zeros except for minutes and seconds.: 1/1/2006 2:09:07AM 10/2/2005 2:43:00PM etc.... I am searching for records corrected between to Dates, or DateTimes, (2 parameters: FromDate & ToDate). The application generating the Crystal Report wants to querie with the String format, but I'd like to make it easier for endusers to use a Date or DateTime parameter. Then they click on a calendar button or just enter say, 1/1/2006 & 1/20/2006. The helpdesk guy said to use DateValue to convert the field.
I've tried many combos between formulas and parameter types, but I return errors or blank reports. Do I set the parameters as dates or datetimes and convert them to strings in the record selection, or vice versa, or ? Thank you.
RIS