geekay
Registered User.
- Local time
- Tomorrow, 05:11
- Joined
- Aug 8, 2006
- Messages
- 46
I am facing a problem. One of my SQL statemnts is some what like that given below
"SELECT TableName.* FROM TableName WHERE TableName.FieldName='" & rs!SchoolName & "'"
When the SchoolName contains an apostrophe, error is resulted. Some SchoolNames can not avoid apostrophe character (Like St. Mary's Secondary School)
I am sorting out the problem by replacing all the Apostrophe charaters ( ' ) by the Grave Accent character ( ` ) in the database manually. I can write a seperate public procedure for this replacement.
I don't find it as a better solution as my database is updated by the user from a delimited text file which is mailed by the end users.
Any other solution to suggest?
Thank you for reading this posting and hope to get your responses
"SELECT TableName.* FROM TableName WHERE TableName.FieldName='" & rs!SchoolName & "'"
When the SchoolName contains an apostrophe, error is resulted. Some SchoolNames can not avoid apostrophe character (Like St. Mary's Secondary School)
I am sorting out the problem by replacing all the Apostrophe charaters ( ' ) by the Grave Accent character ( ` ) in the database manually. I can write a seperate public procedure for this replacement.
I don't find it as a better solution as my database is updated by the user from a delimited text file which is mailed by the end users.
Any other solution to suggest?
Thank you for reading this posting and hope to get your responses
Last edited: