Click here to Skip to main content
15,895,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Vb.net front end sharp develop and .net framework 3.5, database msaccess.

There is a module in my coding where I am showing all the names of the client in the combobox.

I'm extracting the names at form load and displaying it. It is working properly.

Now what I want is when the user type character b then a drop down type something should be created and all the name starting with b should be displayed with initial focus on first record. Now when if user press a then all name starting with ba should be displayed.

I know I can repopulate the database using like % query but since the database will have lakhs of name I don't want to do so.

Any suggestion ?
Posted
Updated 25-Apr-11 5:17am
v2

If you have a large database with millions of records, it may make better sense to have a virtual drop down. When the user starts typing, wait for about 500 ms and then do a DB fetch for just those names that start with the entered text. You'd need to retrieve the data asynchronously to prevent a UI freeze-up. And the 500ms wait is to save on unwanted fetches.
 
Share this answer
 
v2
I would suggest redesign. I do not think access is suitable for huge applications as your seems to be. Also, it does not makes sense to have a combobox with those many values. I would suggest a search using textbox and a button.
 
Share this answer
 
can u explain how to add virtual combo drop.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900