|
-
Feb 28th, 2002, 08:59 AM
#1
Thread Starter
Hyperactive Member
speed of combobox
I want to load approximately 5000 names (from an Access table) into a combobox. But it takes forever!!!! Is there any way to speed this process up?
I am using the "combo1.additem" method. I need the combobox because I can type a few letters of a name, and it will automatically scroll down to that name. Is there some other way to accomplish this, so that I don't have to use a combobox?
-
Feb 28th, 2002, 09:08 AM
#2
Bouncy Member
i think that the time-lag is probably more related to the retrieval of the data from the database rather than the AddItem method...
could you paste your code where you retreive the data and fill the combobox?
-
Feb 28th, 2002, 09:10 AM
#3
Member
I don't know whether it is quicker but you could try the data combo control. 5000 is a lot of records for combo box I personally would use some kind of lookup form with more options for the user to be able filter etc.
Or
a text box to allow the user to enter the text and use the validate event to see if it is valid, if not make the forecolor red if it is then make bold and underline. This way you can just issue a short SQL statement to validate the users entry.
-
Feb 28th, 2002, 09:16 AM
#4
Bouncy Member
combobox should be fine.. it's not a bound control either
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|