G
Guest
Hi all,
I'm inserting values into a table using: CurrentDb.Execute strSQL,
dbFailOnError
Everything works fine, except when I'm adding a string value that sometimes
contains the single-quote. ie. someone wrote "didn't"
How can get those values included in the string for SQL?
I think I'd have to do a find/replace inside the string to replace all
occurrences of ' with something else, but I don't know how to do it, or what
character I need to replace it with. I'm looking into Replace, but haven't
gotten it working yet.
Any help is appreciated.
Thanks,
Jay
I'm inserting values into a table using: CurrentDb.Execute strSQL,
dbFailOnError
Everything works fine, except when I'm adding a string value that sometimes
contains the single-quote. ie. someone wrote "didn't"
How can get those values included in the string for SQL?
I think I'd have to do a find/replace inside the string to replace all
occurrences of ' with something else, but I don't know how to do it, or what
character I need to replace it with. I'm looking into Replace, but haven't
gotten it working yet.
Any help is appreciated.
Thanks,
Jay