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

Apostrophe problems!! 1

Status
Not open for further replies.

mattys

Programmer
May 1, 2001
35
GB
I am aware that this is quite a common problem.

I am updating info from a form textfield, info sourced from the database using this code in the head
Code:
Conn.Execute ("UPDATE Property SET Property.PropertyInfo='" & Request.Form("PropertyInfo") & "' " & strWhereClause )

and this code to call the info into textfield
Code:
<%=RS(&quot;PropertyInfo&quot;)%>

I am aware that there is a fix of how to overcome the sql apostrophe problem, but not sure how to integrate into my code.

Any help appreciated!

Matt
 
Conn.Execute (&quot;UPDATE Property SET Property.PropertyInfo='&quot; & Replace(Request.Form(&quot;PropertyInfo&quot;),&quot;'&quot;,&quot;''&quot;) & &quot;' &quot; & strWhereClause )


_____________________________________________________________________
onpnt2.gif

Hakuna matata!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top