Ok.. I haven't really done much with listboxes before so any help would be appreciated..
I have two listboxes which values are associated to events. These events are triggered using buttons, for capturing data. so For example, someone walks into a room a button is pressed, when they take a seat in the room a button is pressed.. so button are associated to events and the listboxes are to organise who the event belongs too. The problem is that sometimes I need the listboxes to always be unselected unless the listbox is clicked. So anyother time nothing can be selected. I have tried..
but that didnt work for me for some reason.
I also need to check if something is selected in a listbox when i click a button. As some buttons can be pressed without having someone in the listbox.
I am not sure how much sense this is making, it is hard to explain I just know what i need to do but not sure how to do it.
As mentioned earlier any help would be fantastic!
Cheers
I have two listboxes which values are associated to events. These events are triggered using buttons, for capturing data. so For example, someone walks into a room a button is pressed, when they take a seat in the room a button is pressed.. so button are associated to events and the listboxes are to organise who the event belongs too. The problem is that sometimes I need the listboxes to always be unselected unless the listbox is clicked. So anyother time nothing can be selected. I have tried..
Code:
Dim RescanItem as long
For RescanItem = 0 To Me.lstRescan.ListCount - 1
Me.lstRescan.Selected(RescanItem) = False
Next
I also need to check if something is selected in a listbox when i click a button. As some buttons can be pressed without having someone in the listbox.
I am not sure how much sense this is making, it is hard to explain I just know what i need to do but not sure how to do it.
As mentioned earlier any help would be fantastic!
Cheers