Before building the qurery do this ...
strNotes = Request.Form("notes")
If Len(trim(strNotes )) > 0 then
strNotes = Replace(strNotes ,"'","''")
End if
Inside the query use strNotes now. Btw i haven't tested it .. i am just typing it from top of my mind. The logic is surely right .. but just check for any syntax errors :)
Best Regards
Vadivel
MVP ASP/ASP.NET
http://vadivel.thinkingms.com