c# - oledbcommand executenonquery access update error -



c# - oledbcommand executenonquery access update error -

when run code shows error, please help me!

`int code = int.parse(tbxcode.text); string name = tbxname.text; string description = tbxdescription.text; bool active = true; int idcompany = cbxcompany.selectedindex; string kala = cbxkala.selectedvalue.tostring(); int id = int.parse(kala); oledbcommand1.parameters.clear(); oledbcommand1.commandtext = "update kala set code=" + code + ", name=" + name + ", description=" + description + ", active=" + active + ", idcompany=" + idcompany + " id=" + id; oledbconnection1.open(); oledbcommand1.executenonquery(); oledbconnection1.close(); oledbcommand1.parameters.clear();`

maybe should add together "'" text column

oledbcommand1.commandtext = "update kala set code=" + code + ", name='" + name + "', description='" + description + "', active=" + active + ", idcompany=" + idcompany + " id=" + id;

if it's not that, what's message error

c# ms-access oledbconnection oledbcommand

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -