Scroll to first item in list box in ACC2K3?

T

Tony

I've got a form with a list box that has ~ 100 items. When the user selects
a radio button, the list is enabled and they can select multiple items.
When the user clicks another radio button, I clear all of their selections,
but also want the list box to jump to the top of the list.

Any ideas?

Thanks
 
F

fredg

I've got a form with a list box that has ~ 100 items. When the user selects
a radio button, the list is enabled and they can select multiple items.
When the user clicks another radio button, I clear all of their selections,
but also want the list box to jump to the top of the list.

Any ideas?

Thanks

Dim varItem As Variant
For Each varItem In ListBox.ItemsSelected
ListBox.Selected(varItem) = False
Next varItem
Me.ListBox.Selected(0) = True
 
T

Tony

Hey fredg,

Thanks for the response. Tried this already but it didn't produce the
results I'm looking for. It selects, but does not scroll to, the first
item. What I'm hoping to accomplish is to reset the listbox such that if
the user changes their mind again and wants to select an item(s) in the
list, they are able to start at the top without scrolling up. I want to do
the scrolling part for them. I realize that it's easy for the user to do
this, but want to limit clicks whenever possible.

Any other suggestions? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top