Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/07/2010, 03:06
GENESISBM
 
Fecha de Ingreso: enero-2009
Mensajes: 119
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: VB .NET Actualizar Base de datos, comando UPDATE

Cita:
Iniciado por Ka0stj Ver Mensaje
Prueba con esto:

Código vb:
Ver original
  1. myCommand = New OleDbCommand("Update atributos set habataque = "' & habataque  & "' where usuario = user", myConnection)
En tu linea hay algun fallo, seguramente de comillas. Pero mas o menos, me a servido para hacerlo. Gracias ^^

Lo he conseguido hacer de la siguiente manera:

Cita:
myCommand = New OleDbCommand("Update atributos Set habataque='" & habataque & "' where usuario='" & user & "'", myConnection)
Pero no consigo setear mas variables, en la misma linea :(

Haber si me podeis ayudar!

EDITO:

Ya lo he conseguido ^^

Copio la linea por si alguien lo necesitara:

myCommand = New OleDbCommand("Update atributos Set habataque='" & habataque & "' , habarmadura = '" & habarmadura & "', habmagia = '" & habmagia & "', habbufo = '" & habbufo & "' WHERE usuario='" & user & "'", myConnection)

Última edición por GENESISBM; 06/07/2010 a las 03:12