|
rdouglass -> RE: encode in database (6/23/2008 8:27:48)
|
quote:
conn.Execute " UPDATE TroubleShooting SET Description='" & Description& "''" Try it this way: conn.Execute " UPDATE TroubleShooting SET Description='" & Replace(Description,"'","''") & "'" Be careful of all those " and ' on there. The last bold section goes: comma, double, single, double, comma, double, single, single, double What you're doing is replacing every single apostrophe with a pair of apostrophes. That'll write a single apostrophe to the DB. Hope it helps.
|
|
|
|