I believe that along form.id.selectedIndex will get it.
Dependant of "multiple" type.
Which is shorter than your 2 lines toward the end.
> (Type your message here)
> Dim x As Integer
[quoted text clipped - 3 lines]
> i have this code in a button
> how do i say that if i click on an item in the listbox display whether it is available or not in a msgbox...the Status of the item is in my hire table
which also contain an itemid column
> If ListBox1.GetSelected(x) = True Then
>
[quoted text clipped - 15 lines]
>
> <Id>QQMliPItQkazSeHF0YpmxA==</Id>