|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Insert Problem with Double Quotes
I'm inserting records into access using ADO and I'm getting a problem with double quotes. Anything after the quotes is not being entered.
I know if I was using a sql insert I'd have to escape single quotes, but I'm using ADO and I'm having a problem with double quotes! Any one had this problem? How did you get around it? |
|
#2
|
|||
|
|||
|
Hey aspnewbie,
To escape double quotes in ASP, you put them twice. Code:
Response.Write("He said, ""Hey Dude""!")
Is this what you mean? |
|
#3
|
|||
|
|||
|
Tried that - still getting a problem. Very strange. I wasn't getting this problem before.
|
|
#4
|
|||
|
|||
|
Can you post your code?
|
|
#5
|
|||
|
|||
|
You have to replace your double quotes with two of those: '
Do that before you inserts into the Database. Replace(somevalue, Chr(34), "''") |
|
#6
|
|||
|
|||
|
Thanks, I'll give that a whirl.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Insert Problem with Double Quotes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|