no me actualiza
Publicado por Marcelo (30 intervenciones) el 30/03/2004 21:13:04
tengo este codigo :
Private Sub guardar_Click()
Dim campo As String
Dim h As Integer
Dim p As Integer
Set base = OpenDatabase("marc.mdb", False, False, ";pwd=marc2004")
Set registro = base.OpenRecordset(categorias)
With registro
.MoveFirst
For h = 1 To flexdatos.Rows - 1
If !codigo = flexdatos.TextMatrix(h, 0) Then
.Edit
For p = 1 To flexdatos.Cols - 1
campo = flexdatos.TextMatrix(0, p)
.Fields(campo) = flexdatos.TextMatrix(h, p)
Next
.Update
Else
.MoveNext
End If
Next
End With
registro.Close
base.Close
End Sub
Pero no me realiaza la actualizacion de datos no los almacena en access
Private Sub guardar_Click()
Dim campo As String
Dim h As Integer
Dim p As Integer
Set base = OpenDatabase("marc.mdb", False, False, ";pwd=marc2004")
Set registro = base.OpenRecordset(categorias)
With registro
.MoveFirst
For h = 1 To flexdatos.Rows - 1
If !codigo = flexdatos.TextMatrix(h, 0) Then
.Edit
For p = 1 To flexdatos.Cols - 1
campo = flexdatos.TextMatrix(0, p)
.Fields(campo) = flexdatos.TextMatrix(h, p)
Next
.Update
Else
.MoveNext
End If
Next
End With
registro.Close
base.Close
End Sub
Pero no me realiaza la actualizacion de datos no los almacena en access
Valora esta pregunta


0