Me dice ningun registro activo, pero no se a que se refiera, me pueden ayudar por favor ?
Function ActualizarStatusFactura()
Dim I As Integer
I = 0
Cadena = "SELECT FechaPago,StatusFact FROM Facturas WHERE NoFact='" & MSFlexGrid.TextMatrix(I, 2) & "'"
AbrirDAO
For I = 1 To MSFlexGrid.Rows - 1
Set Dr = BaseDatos.OpenRecordset(Cadena)
If MSFlexGrid.TextMatrix(I, 7) = "PAGADA" Then
Dr.Edit
Dr!FechaPago = Format(TXTFECHA.Text, "mm/dd/yyyy")
Dr!StatusFact = MSFlexGrid.TextMatrix(I, 7)
Dr.Update
End If
Next I
CerrarDAO
End Function