By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,621 Members | 1,087 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,621 IT Pros & Developers. It's quick & easy.

Listbox - Help needed

P: 6
I have a listbox with style property set to 1-Checked.
I populate the listbox with records in a recordset.
Then I select some of the items in the listbox.
Now what I want is- I want to be able to display the listbox with the selectd items having their checkboxes ticked every time the listbox is loaded.
Help please..
Apr 6 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 5K+
P: 8,434
I have a listbox with style property set to 1-Checked.
I populate the listbox with records in a recordset.
Then I select some of the items in the listbox.
Now what I want is- I want to be able to display the listbox with the selectd items having their checkboxes ticked every time the listbox is loaded.
Help please..
Your code just needs to set the .Selected property for the items you're interested in. For example, to check the fourth item, you would say "List1.Selected(3) = True". (The list starts at 0, which is why the fourth item is number 3 - stupid, but there you go).
Apr 6 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.