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!

Date Parameter Error

Status
Not open for further replies.

elead

Technical User
Apr 20, 2001
38
US
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
 
try this:

{results.accountno} = {?AccountNo} and
{results.termcd} = "SA" and
datevalue({results.LCDATE}) in {?ReportStart} to {?ReportStop}


good luck...




*forever a student - rarely a teacher*

[americanflag] cheysmommy [americanflag]

"I keep hitting 'escape' but I'm still here..."
 
Isolate the fields to determine which is the offending one.

It's probably either of these, providing you are certain about the datetime field:

{results.accountno} = {?AccountNo} and
{results.termcd} = "SA"

Perhaps you made the {?aAccountno} a numeric and the field is a string?

Right click any field and select browse data to learn it's type and to see example data.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top