Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proffesional advice on app. design

Status
Not open for further replies.

AGP

Programmer
Sep 11, 2001
97
GB
I am building an application that will run on a single client machine. Within the application I have included a combo box which may contain anything up to 10,000 records pulled from an Access database. To keep the data within the combo box up to date, should I bind it to a recordset or populate it on the drop down event? If I bind it to a recordset, it would have to be DAO and a server side cursor. Which option would be quickest, and would either of these provide a suitable means of accessing the data in a proffesional application where the client machine may be fairly old?
 
I would suggest going to the DB as little as possible. Then populate the Drop down on intervals. Say every five minutes or so.

If you wait till they press down, there will be a big delay to get the box. Craig, mailto:sander@cogeco.ca

Remember not to name the Lambs...
It only makes the chops harder to swallow
 
Why in the world would you want to put 10000 records in a combo box?

Will a list box not work?
 
What about a phone number search for a customer DB.

Many customers are pulling up your customer Info, via the Phone number even before they answer the phone. Craig, mailto:sander@cogeco.ca

Remember not to name the Lambs...
It only makes the chops harder to swallow
 
oops customers = companies....

Many companies are pulling up your customer Info, via the Phone number even before they answer the phone. Craig, mailto:sander@cogeco.ca

Remember not to name the Lambs...
It only makes the chops harder to swallow
 
10,000 entries in a combo box? I'd reconsider some of your design decisions if I were you...
 
you could use a text box and a list box.
Filter the list box based on the text entered in to the text box, this could be done as they type.

Mat
 
Populating 10,000 Records at one go into a combo dont seem to be agood programming
It is better to filter records based on user input and using "like" operator to fetch mininum records in a grid control or so

any futher calrification
mail to maheshpatil_mp@indiainfo.com

 
First of all, do not bind it. Create a recordset and use GetRows for fastest retrieval with minimum Net traffic.
Now, you have an array of the data - what you do with it is up to you but I wouldn't use a combo box. A list box may start bombing out after a few thousand records. See if you can break the data up by category such as is done in a telephone book. Create the rs based on that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top