hoffman,
This is a problem i have suffered with myself. Here is how I handled it.
There are 2 ways to do it
Solution 1. Double charsactors
use "" and '' the problem with this is that the "" is useful only in the
VB elements of the script and the '' is only useful in the SQL query parts of the script.
Not very nice but it does work.
Solution 2. prefer option.
Do it the way HTML handles it convert the charactors to something else and convert them back when you want to use them.
use the Replace command
newtxt = Replace(txt,"'","''") 'This works for Jet (Access) SQL
newtxt = Replace(newtxt,"<","<")
newtxt = Replace(newtxt,">",">")
newtxt = Replace(newtxt,"""",""")
newtxt = Replace(newtxt,vbCrlf,"<br> ")
newtxt = Replace(newtxt,"\n","<br> ")