VB combobox max listcount problem.

Albela

Member
Sep 2, 2004
135
0
0
Can someone tell me how to populate huge number of items in a combobox. What is the limit. I am trying to put in a mere 7000 rows and getting an error 2176 - Value for property too long.

Thanks.
 

KLin

Lifer
Feb 29, 2000
30,208
558
126
It's not the number of rows that's the problem. It's the data length of one of the rows that is giving you the error I believe.

EDIT: a combobox can support up to 65535 rows FYI.
 

tfinch2

Lifer
Feb 3, 2004
22,114
1
0
a combobox can support way more than 7000 items. i haven't used VB in so long but i do remember that. look elsewhere for your error
 

Albela

Member
Sep 2, 2004
135
0
0
Could this be beacuse I am using the value list option for the combobox.row source type ?

The data is just 50 chars in length and everything seems good on that part.

 

jparnell

Member
Oct 12, 2004
36
0
0
What kind of data are you putting in? Maybe there is a better solution...like tkdkid said, it would be hard to use i would think
 

Albela

Member
Sep 2, 2004
135
0
0
I am trying to put in all possible "Skills" into the combo box. User would have to select whatever he has.

Right now we have combobox that is linked to column in the table holding those values directly (MSAccess). I am trying to use ADO and populate the values from the table using the "Value/List" option for the recordsource property.