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
 
Top