mark said:
Hi,
I am using access 2002.
How can I find out the value of the current selected item in a
listbox. Thanks, M
If the list box is not set for multiselect, the value of the list box
control itself is the value of the item that is currently selected. If
no item is selected, the value of the list box is Null.
If the list box is set for multiselect, there can be more than one
selected item and the list box has no value. In that case you can loop
through the control's ItemsSelected collection and get the ItemData
value for each row in the collection. Post back if you need details on
how to code this.