Ver Mensaje Individual
  #12 (permalink)  
Antiguo 19/04/2010, 09:33
Avatar de Sergio18
Sergio18
 
Fecha de Ingreso: abril-2010
Ubicación: No quieras saberlo
Mensajes: 94
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: 2 dudas que tengo

Yo tengo puesto esto pero no hace nada, aver si tu sabes el porque:

Código vb:
Ver original
  1. Set cnPrueba = New ADODB.Connection
  2. cnPrueba.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\prueba.mdb;Persist Security Info=False"
  3. cnPrueba.Open
  4. cnPrueba.Execute "update tbl_direccion set Nombre = Nombre, Apellidos = Apellidos, Ciudad = Ciudad, Provincia = Provincia, Telefono = Telefono, CP = CP  WHERE id = " & MSFlexGrid1.TextMatrix(MSFlexGrid1.Row, 0)
  5. cnPrueba.Close
  6. Set cnPrueba = Nothing
  7. 'Se actualiza el registro del msflexgrid
  8. MSFlexGrid1.Refresh