Dim adaptsuma As New OleDbDataAdapter
Dim setdasuma As New DataSet
Dim comsuma = conexion.CreateCommand
adaptsuma.UpdateCommand = comsuma
comsuma.CommandType = CommandType.Text
comsuma.CommandText = "UPDATE IntroduccionDeVentasAhora SET Pts = ROUND (@pts2 /(" & TxtPorcentaje.Text & "/100),2)"
'Where NombreFormaPago <> ('TARJETA CREDITO')"
For i = 0 To DgTotales.Rows.Count - 1
Dim total As String
total = CStr((DgTotales.Rows(i).Cells(2).Value))
'MessageBox.Show(total)
comsuma.Parameters.AddWithValue("@pts2", (total))
Next
conexion.Open()
comsuma.ExecuteNonQuery()
DgTotales.Rows.Remove(DgTotales.CurrentRow)
conexion.Close()
gracias anticipadas amigos
