M
Max Moor
Hi All,
I have a multi select listbox that I use both as a single select and a
multi select. I can't change the multi select property in VB, so I keep a
software switch of my own, and trap the click event.
When getting multiple selected records, I use the standard, Access help
code:
For Each varItem In ctlItemList.ItemsSelected
Debug.Print ctlItemList.ItemData(varItem)
Next varItm
What I'm wondering is if there isn't a shorthand, maybe using the
ItemsSelected property, for getting row data when I know only one record is
selected? The code above would work, and just iterate once, but it seems a
lot of code to type to get one records data.
Thanks,
Max
I have a multi select listbox that I use both as a single select and a
multi select. I can't change the multi select property in VB, so I keep a
software switch of my own, and trap the click event.
When getting multiple selected records, I use the standard, Access help
code:
For Each varItem In ctlItemList.ItemsSelected
Debug.Print ctlItemList.ItemData(varItem)
Next varItm
What I'm wondering is if there isn't a shorthand, maybe using the
ItemsSelected property, for getting row data when I know only one record is
selected? The code above would work, and just iterate once, but it seems a
lot of code to type to get one records data.
Thanks,
Max