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!

checking form field for single quote (')

Status
Not open for further replies.

mwa

Programmer
Jul 12, 2002
507
US
I have a vbscript sub that validates the fields in a form on an asp page, before submitting the form. One of the fields is a description field that I need to screen for single quotes (I can't have them) and let the user know to remove the single quote. What is the correct syntax for doing this???

Case form1.description.value ????????????????
ret = false
Msgbox "Please remove the quote symbol(')."
Call form1.description.focus()

Thanks in advance,
mwa
 
never mind... I had a brain fart... Instr()... duh...

Thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top