VB takes 4 second to load 14,380 customers into DB combo box 
Author Message
 VB takes 4 second to load 14,380 customers into DB combo box

Hi

I have a customer table in my Access 97 mdb file that I downloaded from my
company's database.

I am developing my apps using Microsoft VB 5 Enterprise edition.
I tried to use combo box and additem to populate my combo box with Customer
name(string 80) and customer number (string 15) but it took very long time.

I then tried DB combo box with data control that connected to my mdb. This
worked  but it took about 4 seconds refresh my data control.

Can anybody show me a better way to make my data control refresh faster ?

Regards

John



Sun, 27 May 2001 03:00:00 GMT  
 VB takes 4 second to load 14,380 customers into DB combo box
Don't use the bound controls, if possible at all. And open your recordset using the
dbOpenForwardOnly, if possible. Adding so many items to a combo is bad design, IMO... who
would want to search through a 14,000 item combo box? You best option is to create a
single-row recordset using a stored querydef with a parameter applied to the key field,
and validate your user's entries against that. You can also perform proximal searching on
the recordset to bring up related records (i.e., those that start with an "A", or
something), and show those as a pick list. Anyway, use you imagination. But don't make
your users suffer! :-)

~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please post/reply to the newsgroup(s) so
that everyone can benefit from the discussion.

Regards,

Klaus H. Probst, MCP


       ICQ: 22454937
~~~~~~~~~~~~~~~~~~~~~~~~~~~


Quote:
> Hi

> I have a customer table in my Access 97 mdb file that I downloaded from my
> company's database.

> I am developing my apps using Microsoft VB 5 Enterprise edition.
> I tried to use combo box and additem to populate my combo box with Customer
> name(string 80) and customer number (string 15) but it took very long time.

> I then tried DB combo box with data control that connected to my mdb. This
> worked  but it took about 4 seconds refresh my data control.

> Can anybody show me a better way to make my data control refresh faster ?

> Regards

> John



Sun, 27 May 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Loading the second combo-box from DB...

2. Help filling second combo box from fist combo box

3. Help filling second combo box from first combo box

4. My eVB app takes 5 seconds to load

5. load 2nd combo box - depend on first combo box

6. Load X combo-box from DB

7. Query takes 0 seconds in Query Analyzer, times out in VB

8. DB COMBO VS COMBO BOX

9. VB 4.0/database/db combo box

10. Change values of second combo box?

11. Help with displaying second column in multi column combo box

12. createobject of Excel.Application.8 takes 30 seconds

 

 
Powered by phpBB® Forum Software