Link to home
Create AccountLog in
Avatar of ewingdj
ewingdjFlag for United States of America

asked on

Determine the topmost index of a listbox.

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?
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Can you explain further how it "doesn't work"?...or are you tyring to get the TopIndex DURING an ongoing scroll by the User?
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.

AW
ASKER CERTIFIED SOLUTION
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer