Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/05/2005, 08:16
marcocho2005
 
Fecha de Ingreso: abril-2005
Mensajes: 137
Antigüedad: 20 años
Puntos: 0
no mucho problemo

No te compliques tanto, recuerda que un datagrid esta conectado a la BD, tons lo que puedes hacer es lo siguiente
If dgValorParticular.Recordset.Recordcount > 0 Then
dgValorParticular.Recordset.MoveFirst
While Not dgValorParticular.EOF
strSQL = "INSERT INTO VALORES_PARTICULARES (ID_VALOR_B, ID_LOCALIZACION, VALOR) VALUES (" & dgValorParticular.Recordset(0) & ",'" & dgValorParticular.Recordset(3) & "','" & dgValorParticular.Recordset(1) & "')"
cnGral.Execute strSQL
dgValorParticular.Recordset.MoveNext
Wend
End If