I have a listbox in a form that is populated with values from a table. I want to have several of the values selected by default.
Any idea how I can do this?
I have a listbox in a form that is populated with values from a table. I want to have several of the values selected by default.
Any idea how I can do this?
how about using the ".selected" property of the box and iterating through them?? first thing though would be changing the type of box from 'single' to 'multiple' or 'extended'.
Here's what I tried:
It seems like the Default Value property in the Data tab would be the way to go, but I can't figure it out for a listbox.Code:lstMethods.Selected (1) lstMethods.Selected (3) lstMethods.Selected (5)
this works fine:
".selected" has to be assigned a booleanCode:Me.List4.Selected(0) = True Me.List4.Selected(1) = True 'etc, etc...