Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/04/2015, 19:11
lexus_lex
 
Fecha de Ingreso: abril-2015
Ubicación: Puerto Montt
Mensajes: 6
Antigüedad: 9 años
Puntos: 0
Respuesta: Problemas con modulo de Update

corregi y nada me dice que la conexion queda abierta y me tira hacia afuera, algo asi:

'Me.btnEdit.Enabled = False
'close connection
conex.Close()
End If
End If

'------------------*********************'


conexion()


comando.CommandText = "UPDATE bitacora " & _
" SET fecha='" & DTPFecha.Text & "'" & _
", horaini='" & DTPHoraIni.Text & "'" & _
", horaterm='" & DTPHoraTerm.Text & "'" & _
", planta='" & TxtPlanta.Text & "'" & _
", equipo='" & TxtEquipo.Text & "'" & _
", observacion='" & TxtInciden.Text & "'" & _
", usuario='" & TxtUsuario.Text & "'" & _
" WHERE idBita=" & TxtId.Tag
conex.Open()
comando.ExecuteNonQuery()
conex.Close()



MsgBox("Bitacora Modificada")

indicame por favor mira que lo tengo que entregar el dia sabado