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

How Can I make TextArea take Apostrophes

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Yikes,,

My TextArea box on my form will dump every time you enter an Apostrophe.

I found a fix,but now it will not even update the filed in the database: Here is the fix, can you tell what is wrong?

strsqlT = "INSERT INTO HRForm (Duties) " & "VALUES ('" & strTextArea & "')"

strTextArea = Replace(Request.Form("S1"), "'", "''")

S1 is the name of the field for "Duties", but now the SQL statement wont' even update.

Any Ideas?
Thanks,
Tuleta

 
Just an idea...maybe you should replace strTextArea before sticking it into strsqlT.

Choo Khor
choo.khor@intelebill.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top