Hi there,
I have a list box with a bunch of items in it. The user can select an item and hit a delete button to remove it which then causes some other things to happen. Basically, as part of that event, I need to select the next item in the list and return its value, as shown below:
As far as I can tell from the help files, calling for the value property of a list box is supposed to return the value of the selected item; however, in this case it's returning the value of the previously selected item - the one that the user originally selected. The value property is not updating to reflect the change in selection in the list box. Any ideas?
jjmclell
I have a list box with a bunch of items in it. The user can select an item and hit a delete button to remove it which then causes some other things to happen. Basically, as part of that event, I need to select the next item in the list and return its value, as shown below:
Code:
[B]Form1!listOfItems.Selected(next) = True[/B]
[I]Do something with[/I] [B]Form1!listOfItems.Value[/B]
As far as I can tell from the help files, calling for the value property of a list box is supposed to return the value of the selected item; however, in this case it's returning the value of the previously selected item - the one that the user originally selected. The value property is not updating to reflect the change in selection in the list box. Any ideas?
jjmclell