I'm using Access 2003 and realize that the topIndex method for a listbox does not work. Is there any other way to determine the topmost index value of a listbox as you scroll through the list?
Visual Basic ClassicMicrosoft Development
Last Comment
Dana Seaman
8/22/2022 - Mon
Mike Tomlinson
Can you explain further how it "doesn't work"?...or are you tyring to get the TopIndex DURING an ongoing scroll by the User?
Arthur_Wood
Do you mean the Index of the topmost Listbox Item that is displayed, as items are scrolled off the top, when you scroll down the list?
You must keep that pointer in your code, by incrementing a variable (TopIndex for example), every time you scroll the listbox down by one posistion, and decrementing the pointer when you scroll the list box back up by one position.