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!

.asp page not updating database correctly

Status
Not open for further replies.

chridd

MIS
Feb 7, 2005
12
US
I have been practicing writing a form to a access 2003 database. If the user places an (') (ie. dave's house) in a text box and submit the form, when I go to the database the record cuts everything off past the (')(ie.dave). I have tried everything I know to figure this out. I am not sure if it is the .asp not sending all the data bast the (') to the access database or if the access database is rejecting everything after the (')..

Help!!!
 
The problem is not the ASP... its the SQL.

The single quote character is a SQL delimitter.

The easy fix is to replace it with another character.. I like the ` character that is just to the left of the 1 on my keyboard.

myString = Replace(myString, "'", "`")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top