VB2005 怎样向数据库中输入特殊符号?解决办法

VB2005怎样向数据库中输入特殊符号?例如:SQL语句为“updatetablesetid&CStr(TBText1.Text)& ,name&Cs

VB2005 怎样向数据库中输入特殊符号?
例如:SQL语句为“update   table   set   id= ' "&CStr(TBText1.Text)& " ',   name= ' "&Cstr(TBtext2.Text)& " '”

但是如果TBtext2.Text里面含有“     '     ”符号就会报错,如何解决这个问题啊??

[解决办法]
Dim sql As String = "update table set id= ' " & Replace(CStr(TBText1.Text), " ' ", " ' ' ") & " ', name= ' " & Replace(CStr(TBtext2.Text), " ' ", " ' ' ") & " ' "