Super dzięki o to chodziło.
Jednak mam pytanie. W procedurze Private Sub Form_Current()
' Provide a record counter for using with
' custom navigation buttons (when not using
' Access built in navigation)
Dim rst As DAO.Recordset
Dim lngCount As Long
Set rst = Me.RecordsetClone
With rst
.MoveFirst
.MoveLast
lngCount = .RecordCount
End With
'Show the result of the record count in the text box (txtRecordNo)
Me.txtRecordNo = "Record " & Me.CurrentRecord & " of " & lngCount
po co jest wątek:
With rst
.MoveFirst
.MoveLast
lngCount = .RecordCount
End With
Rozchodzi się o to by rts przejechał się po wszystkich rekordach i uaktualnił właściwość .RecordCount?? Czy zawsze tak trzeba robić?? |