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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limitation On Combo Box

Status
Not open for further replies.

TJLearn

Programmer
Dec 6, 2003
12
US
Hi,

I can't figure out how to make it work. I need your help.

I am using Access Project. The problem I have right now is my search combo box doesn't show all borrowers because the number of Borrowers exceeds the maximun number that can be displayed on the combo box. Is there a way to make it show all of my borrowers? All of your helps will be very appreciated!
 
A combo box has a maxium of 65,536 rows. Ideally though the list of a combo box should be 50 to 100 rows based on performance.

Steve








 
A simple trick I use to overcome this limitation is to have a text box and a List box working 'in tandem'. The user enters characters into the text box; an OnKeyPress event in the text box then feeds the current text box value into the Criteria part of the selection clause of the RowSource of a ListBox (using the LIKE operator with a % wildcard concatenated to the text field value), and requeries the ListBox (the list box could be a combo).

This results in progressively smaller result sets being made available to the user as the search criteria are qualified. Works well; especially with large data sets.

Make sure though that your selection criteria is properly indexed.



Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top