Hi,
I have a filter on a form.
I would like to get rid of the record selector at the bottom and have a text box that displays the number of records that have been filtered and the total records.
For example if the filter outputs 25 of the 600 total records I would like the text box to display "25 of 600 records."
I have this so far but this displays the current record that is selected:
Any help would be greatly appreciated. Thanks!
I have a filter on a form.
I would like to get rid of the record selector at the bottom and have a text box that displays the number of records that have been filtered and the total records.
For example if the filter outputs 25 of the 600 total records I would like the text box to display "25 of 600 records."
I have this so far but this displays the current record that is selected:
Code:
Private Sub Form_Current()
Dim recPosition As Recordset
Set recPosition = Me.RecordsetClone
recPosition.Bookmark = Me.Bookmark
Me![txtCount] = "Record " & (recPosition.AbsolutePosition + 1) & " of " & DCount("[InternalCode]", "Products")
recPosition.Close
End Sub
Any help would be greatly appreciated. Thanks!