Ver Mensaje Individual
  #11 (permalink)  
Antiguo 23/04/2010, 01:05
Insomnia
 
Fecha de Ingreso: noviembre-2005
Mensajes: 751
Antigüedad: 19 años, 4 meses
Puntos: 13
Respuesta: Editar msflexgrid con un formulario

Hola

En principio el código debería ser así:
Código vb:
Ver original
  1. Set cnPrueba = New Connection
  2. 'Establecer sus propiedades
  3.     With cnPrueba
  4.         .Provider = "Microsoft.Jet.oledb.4.0"
  5.         .ConnectionString = "prueba.mdb"
  6.      End With
  7.     cnPrueba.Open
  8.     cnPrueba.execute "UPDATE tbl_direccion SET nombre='" & Text1 & "', apellidos='" & Text4 & "',direccion='" & Text5 & "',ciudad='" & Combo1 & "',provincia='" & Combo2 & "',telefono='" & Text2 & "',cp='" & Text6 & "' Where id = " & ID & ""

Con este código tendría que cambiar los datos del registro (simpre cuando la sentencia UPDATE este bien realizada). Luego solo te queda volver a cargar el msflexgrid

--Saludos--