Programatically Selecting a row in a list box

  • Thread starter Thread starter Mark Hollander
  • Start date Start date
M

Mark Hollander

Hi All,

I am new to the Microsoft Access developement environment. I cannot seem to
get to select a row in the list box via the VB code. In VB.Net I would use a
command similar to this, I cannot remeber the actual command at the moment.

e.g.
Me.Listbox.SelectedItem = iRow

This would then select the row I am after, How do I do this in MS Access

Thank You
Mark Hollander
 
Hi,


ListBoxControl.ItemsSelected( index ) = True


or False, to select,unselect, the (index+1)th row. If the MultiSelect is
not set to None, you can, indeed, select more than just one row.


Hoping it may help,
Vanderghast, Access MVP
 
Back
Top