Scroll to first item in list box in ACC2K3?

  • Thread starter Thread starter Tony
  • Start date Start date
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
 
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
 
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.
 
Back
Top