G
Guest
I was using the .listcount property of a listbox but realized it behaved
pretty wierd.
1. When I first open a form and the listbox is empty, it showed 1
2. When I select something from a combo box which will display in the
listbox, it showed the number of items + 1
3. So thinking I was smart, I went to the control with the listbox and added
a -1 to it in the control source as in: =lstListbox.listcount - 1
4. Guess what, when I selected something from the combo box which HAD NO
items to display, the control shows -1 now
Why is it behaving this way and how can I get it to work right? Thanks.
ck
pretty wierd.
1. When I first open a form and the listbox is empty, it showed 1
2. When I select something from a combo box which will display in the
listbox, it showed the number of items + 1
3. So thinking I was smart, I went to the control with the listbox and added
a -1 to it in the control source as in: =lstListbox.listcount - 1
4. Guess what, when I selected something from the combo box which HAD NO
items to display, the control shows -1 now
Why is it behaving this way and how can I get it to work right? Thanks.
ck