Single quote problem with reports [message #353426] |
Mon, 13 October 2008 18:45 |
sg52
Messages: 7 Registered: October 2008
|
Junior Member |
|
|
Hi,
I am facing a very strange problem.
Actually our application is reporting application which provide reports to the user.
There is a report where data is being fetched from database and this report has a hyperlink to a different report.
The data selected in report one is being passed to another report using user parameter.
The problem is that one of the column which is passed to report2 has a value in database as "FA'S customer info".
Now when i pass this value to report2 and when i execute this, it gives an error that:
"quoted string not properly terminated"
I know that its because of the value in database.
The thing is in report 2 as soon as it get inside a user defined parameter i cant do any manipulation on that
or i cant think how to do that.
Can you suggest some method to take care of this situation.
Basically when i am passing the value how can i eliminate this problem.
I thought of using replace so that i can substitute one single quotes with two so when this parameter is passed
in where clause it takes 2 single quotes and
hence no problem, but dont know how to go about it.
Kindly help with any solution which you think can be helpful here.
Thanks in advance.
|
|
|
|
|
|