Results 1 to 4 of 4

Thread: speed of combobox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Posts
    256

    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?

  2. #2
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    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?
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  3. #3
    Member
    Join Date
    Nov 2001
    Location
    Lincoln,England
    Posts
    60
    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.

  4. #4
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    combobox should be fine.. it's not a bound control either
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width