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!

can anyone help? i am using vb, 1

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
can anyone help?

i am using vb, asp and oracle together and when i try to
update a table with a value passed to a com object from an asp page i get the old "ole db multiple step required .." error.
the data is an english product description followed by a french product description separated by a forward slash.
I am sure that the forward slash is causing this.
Does anyone know how i can remedy this?

thanks,
 
you can enclose the value of the field in double quotes, but you have to use the ansii value for them ex:
UpdateSQL = "update tblTable set description = '" & chr(34)& request("description") & chr(34) & "'"

or you can do a little bit of string manipulation and search for specific characters like "/" and replace it with two of them "//" - and it should update with only one.
 
thanks pmulligan!

thats just what i was looking for. does padding the string with an extra character (ie."/") apply to most other problematic characters as well?

thanks,

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top