ListCount being weird

A

Alex

I have a listbox, whose rowsource I set during the forms On Current event.

The problem is when I open the form, on acFormAdd, the listcount property of
the listbox shows up as 1. This is of course false, since the listbox is
empty. Does anyone know why this is happening?

Thanks!

Alex Brown
 
D

Dirk Goldgar

Alex said:
I have a listbox, whose rowsource I set during the forms On Current event.

The problem is when I open the form, on acFormAdd, the listcount property
of
the listbox shows up as 1. This is of course false, since the listbox is
empty. Does anyone know why this is happening?

Thanks!

Alex Brown


Does your list box have its Column Heads property set to Yes/True? If so,
the row of column headers will count toward the ListCount.
 
A

Alex

No, the column heads are specifically set to false. (Although this is
default). In John's reply I put in my code. Thanks!

Alex Brown
 

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

Similar Threads


Top