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!

Missing expression in my SQL statement? 1

Status
Not open for further replies.

mrdod

Technical User
Jun 12, 2006
103
US
I'm attempting to pull information off a Lotus Notes db and have no idea what the format of the information looks like as it differs from line to line. When I run the SQL statement I get a Syntax Erro (missing operator) in query expression. This variable has "/" and "'" and ":" and "&' in it. I thought by putting it in the format I did this would work, obviously I'm wrong. I'd post the rest of the SQL statement but the thing is pretty big and this seems to be the only one I'm having problems with.

,""" & strproblemdesc & ""","

Any ideas?
 
The ' will cause problems. Have you tried:

,'" & Replace(strproblemdesc,"'","''") & "'
 
Thanks Remou I never had to use "Replace" I just always used the """ & text & """ and it seemed to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top