Hello everyone-
I have just a basic "comments" form setup in Access that people can type their comments into. I then have another form, which queries the database, and displays the information. I am having problems when it comes to symbols. The comment section is free form, anything is allowed as far as symbols. So when I create an SQL insert query using the text from that textbox, it causes errors. Specifically when the user types in a " or ; or . and I'm sure others into my "comment" area. I was just wondering if anyone knew a way to insert the text into my database so that I don't have this problem? Is there a way to convert these symbols using the CHR function? I may be able to find a way to convert some of these problematic symbols myself, but I was wondering if anyone knew of a function which did this, or if there was some easier way than making some huge Function on my own.
Thanks
-Mark
I have just a basic "comments" form setup in Access that people can type their comments into. I then have another form, which queries the database, and displays the information. I am having problems when it comes to symbols. The comment section is free form, anything is allowed as far as symbols. So when I create an SQL insert query using the text from that textbox, it causes errors. Specifically when the user types in a " or ; or . and I'm sure others into my "comment" area. I was just wondering if anyone knew a way to insert the text into my database so that I don't have this problem? Is there a way to convert these symbols using the CHR function? I may be able to find a way to convert some of these problematic symbols myself, but I was wondering if anyone knew of a function which did this, or if there was some easier way than making some huge Function on my own.
Thanks
-Mark