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

Selecting character with Apostrohe

Status
Not open for further replies.

MaryumS

Programmer
Oct 31, 2000
12
US
I am trying to pass parameters to crystal but it does not accept it if it has an apostrophe..for example selecting an employee list with last name as a parameter..if I wanted to select all the "O'Conners" crystal gives me a sql error b/c it will interpret the first ' as an end quote..does anyone know a work around for this problem.

 
Passing from where? faq149-237 Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
passsing from the crystal report and it sends the parameter to a stored procedure..if you connect a stored procedure to a crystal report it automatically creates the parameters on the report of the parameters in the procedure but it sends the parameters with single quotes so when you send a name or anything else with an apostrophe it interprets it as an end quote.
 
I haven't run across that. I will have to check it out. Maybe someone else knows a workaround. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top