Jump to content

[Resolvido] Ajuda com um update


FabioRochapt

Recommended Posts

Olá a todos,

Estou a usar o vb 2012 com o sql server 2012.

Ao executar este update, não me dá nenhum erro mas também não faz nenhuma alteração.

cmd.CommandText = "Update Entity set ID = '" & Int(RTrim(txtid.Text)) & "' , Name = '" & (RTrim(txtName.Text)) & _
       "' , Address = '" & RTrim(txtAddress.Text) & "' , Phone = '" & RTrim(txtPhone.Text) & "' , cname = '" & _
       RTrim(txtcname.Text) & "' , Fax = '" & RTrim(txtFax.Text) & "', Web = '" & RTrim(txtWeb.Text) & _
       "' , Email = '" & RTrim(txtEmail.Text) & "', inactive = '" & CType(cbInac.Checked, Integer) & _
       "' where ID = '" & txtid.Text & "'

Não consigo ver onde está o erro daí pedir a alguém mais experiente uma ajudinha.

Obrigado desde já.

Fábio Rocha

Edited by Caça
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.