Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/10/2008, 12:22
alcaladavid
 
Fecha de Ingreso: junio-2008
Ubicación: Caracas
Mensajes: 135
Antigüedad: 15 años, 11 meses
Puntos: 0
Validar instruccion sql Inser

Hola gracias a todos


Tengo la siguiente instruccion Insert

Public Sub Insertar()
sql_insert.Source = "INSERT INTO datos_cliente (id_cliente,rif,nombre,apellido,direcccion,telefon o_hab,telefono_cel) VALUES ('" & id_cliente & " ','" & rif & " ','" & nombre & "','" & apellido & "','" & direccion & "', '" & telefono_hab & " ','" & Telefono_cel & "') "
sql_insert.Open , "DSN=computacion"
MsgBox "Resgistro insertado"
End Sub

como se detecta cuando la instruccion falla y en codigo no reviente....

Muchas gracias