List box

J

Jacob

I need to know if there is a code that will allow me to select
everything listed in a list box?
 
E

Emilia Maxim

Jacob said:
I need to know if there is a code that will allow me to select
everything listed in a list box?

Jacob,

here's some code:

Dim I As Integer

For I = 0 To Me![MyListBox].ListCount - 1
Me![MyListBox].Selected(I) = true
Next I

The MultiSelect property must not be 'None'.

Best regards
Emilia

Emilia Maxim
PC-SoftwareService, Stuttgart
http://www.maxim-software-service.de
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top