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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report not accepting parameters

Status
Not open for further replies.

TudorSmith

Programmer
Jan 14, 2002
245
GB
Hi All

I have a Stored Procedure sourcing an SQL 2000 database. The SQL Query analyser runs the SP fine (including any parameters I pass in). the paramters are:

@Year INT,
@Period INT,
@GroupOG VarChar(50)
@Analyser VarChar(25)

Now, when I bind my Crystal Report (v 9.0) to this stored procedure, it runs fine as long as the @GroupOH parameter has no spaces i.e. 'Broxbourne' or 'Electricians' But when I pass in a parameter with a space i.e. 'Cheif QS' or 'Commercial Director' I get error messages stating: "Not Supported - Cannot obtain error message form server"

now this is pointing to the Stored procedure being wrong, but it runs fine in SQL Query analyser...so it can't be wrong.

do you think my report cannot handle the spaces? If so, how can I convince the report to accept them with spaces?

So long winded...I hope I've explained myself

Tudor

birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top