I am trying to create a record count that displays in a textbox. The format I would like is Record 1 of 20, where '1' is the current record and '20' is the record total. The tricky part for me is that I want this to be based on a query that is populated a listbox.
My current solution is to use txtTotalRecords = listFilter.ListCount, which returns the total records in the listbox.
I have experimented with this, but cannot seem to find a way to count the current record selected. I would appreciate any help that you can provide.
Thank you, in advance.
My current solution is to use txtTotalRecords = listFilter.ListCount, which returns the total records in the listbox.
I have experimented with this, but cannot seem to find a way to count the current record selected. I would appreciate any help that you can provide.
Thank you, in advance.