>Hi All,
>
>Currently I am writing a visual foxpro program to write data / record to sql server. However there is a problem when I failed to update the sql table when there is " ' " in the string. Example: update the "21' lcd monitor"
>
>update tbl_item set description1 = ' 21' lcd monitor ' where item = '0001'
>
>How could I include the " ' " in the string?
>
>Thanks for your help in advance.
Use parameter instead.
update tbl_item set Description1 = ?m.lcDescription where item = ?m.lcItem
where lcDescription and lcItem are local variables.
If it's not broken, fix it until it is.
My Blog