bkagan98
06-18-2004, 01:39 AM
I am trying to update a record in ms access database.
If new value (cDesc) contains apostrof (') code crashes.
Is there another way to do this?
code:
string _cSQL = "UPDATE Code SET" +
" Code.Desc = '" + cDesc.Trim() + "'" +
" WHERE Code.n_id = " + iCodeID.ToString();
If new value (cDesc) contains apostrof (') code crashes.
Is there another way to do this?
code:
string _cSQL = "UPDATE Code SET" +
" Code.Desc = '" + cDesc.Trim() + "'" +
" WHERE Code.n_id = " + iCodeID.ToString();