Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter problem

Status
Not open for further replies.

elead

Technical User
Apr 20, 2001
38
US
I am sending in 2 parameters to a report that should be picked up as date but the report is squawking for a string in lieu of date, is there a setting somewhere in CR that I missed somewhere

The dbfield type is MSSQL Datetime

The parameters are

{?DateStart}--Date
{?DateEnd}--Date

thanks
 
Sending parameters from what, and in what format?

Share the code that you're using, and state the specific error rather than a barnyard simile ;)

I'd double check the parms to make sure that they are of type date too.

-k
 
I am receiving an error message from crystal saying "a string is required here when I try to run my report"
Datebase is MSSQL
any ideas??

thanks

Here is the code
{results.accountno} = {?AccountNo} and
{results.termcd} = "SA" and
{results.LCDATE} in {?ReportStart} to {?ReportStop}

results.LCDATE is Datetime Field

{?ReportStart}--Date
{?ReportStop}--Date
 
Where does the cursor appear at when you get the message? It could as easily be the {?AccountNo} that requires a string..

Lisa
 
Try this:

{results.LCDATE}
In Date({?StartDate}) To Date({?EndDate})

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top