473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to Increase Combobox Limit

124 100+
I've found that a combobox will only display 10,000 records. Is there a way to increase this limit? I want my users to be able to search for people by name and I thought it'd be easiest for them to have a combobox and as they type in the name it jumps to the record that most closely matches what they're typing in (I forget what this feature is called).
Jul 12 '10 #1

✓ answered by jimatqsi

There is not a limitation of 10,000 records in a combobox. You should be able to handle a lot more than that. But, in a multi-user system you want to make sure you are using a snapshot type query to for your record source to be sure you don't lock up a bunch of records and give the other users unnecessary hourglasses.

Allen Browne posted a nice tip about comboboxes a long while ago. His idea is basically to leave the combo box empty until the user types something, then go fill it match what has been typed. Check this out:
http://allenbrowne.com/ser-32.html

Jim

8 6537
Hmmm... even though it goes to the records while typing, 10,000 records is a bit much to work with. Could you add other controls to refine the search criteria further? The fact that you are hitting the limit may be telling you something.
Jul 12 '10 #2
bullfrog83
124 100+
Is a bit much to work with understandably. I do have another control where they can lookup the person by their id. However, then they'd have to know the person's id each time and usually it's easier to type in the name. I could have a free-form textbox but then I'd have to specify how to enter the name and, moreover, more than one person could have the exact same name. The combobox includes additional information to distinguish between people.
Jul 12 '10 #3
I don't know, maybe some sort of A-Z control where they can pick last names starting with [some letter] first and then have those results fill the combobox. Just thinking off the top of my head...
Jul 12 '10 #4
jimatqsi
1,271 Expert 1GB
There is not a limitation of 10,000 records in a combobox. You should be able to handle a lot more than that. But, in a multi-user system you want to make sure you are using a snapshot type query to for your record source to be sure you don't lock up a bunch of records and give the other users unnecessary hourglasses.

Allen Browne posted a nice tip about comboboxes a long while ago. His idea is basically to leave the combo box empty until the user types something, then go fill it match what has been typed. Check this out:
http://allenbrowne.com/ser-32.html

Jim
Jul 12 '10 #5
missinglinq
3,532 Expert 2GB
The "Wonder from Down-Under" also has a 'find-as-you-type' hack giving AutoExpand ability to a textbox:

http://allenbrowne.com/AppFindAsUType.html

Linq ;0)>
Jul 12 '10 #6
bullfrog83
124 100+
@jimatqsi
I really like his idea except that I can't get it to work. After I type in the first three letters (fer) I get an error stating: Invalid column name 'fer*'. I've reworked Allen Browne's code to suit my purposes (although it still didn't work when I had it almost verbatim). This is what I have:

Expand|Select|Wrap|Line Numbers
  1. Const conNameMin = 3
  2. ----
  3. cboSelectName_Change()
  4.     Dim strName As String
  5.  
  6.     strName = Me.cboSelectName.Text
  7.  
  8.     If Len(strName) >= conNameMin Then
  9.         Me.cboSelectName.RowSource = "SELECT * FROM vwStudentNames WHERE LastName Like """ & strName & "*"" ORDER BY FullName"
  10.     Else
  11.         Me.cboSelectName.RowSource = ""
  12.     End If
  13.  
Jul 13 '10 #7
jimatqsi
1,271 Expert 1GB
Hmmm, I don't see the problem. Might be that "*"" ORDER by FullName" should be "*""" ORDER by FullName"
Try this
Expand|Select|Wrap|Line Numbers
  1. dim strSQL as string
  2. strSQL = "SELECT * FROM vwStudentNames WHERE LastName Like """ & strName & "*"" ORDER BY FullName"
  3. msgbox strSQL
  4. Me.cboSelectName.RowSource = strSQL
That will show you the SQL in a message box before it executes.

Jim
Jul 13 '10 #8
bullfrog83
124 100+
@jimatqsi
I got it to work. Because I'm working in SQL server I forgot I had to replace the * with %.
Jul 14 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dave 2 | last post by:
Yes, another memory limit question. Our PHP application is running with PHP 4.3.9 running in CGI mode under Windows IIS 5. When a user tries to download a file that is 'too large', the...
2
by: SpaceDust | last post by:
I am developing in MSVC++ .Net 2003, using MFC, building a realtime telemetry display. I have reached an object limit of 255, but need to add another 20+ objects. Is there a simple way to increase...
1
by: coosa | last post by:
Hi all, I get this message when trying to update a tabel i have which has nested hierarchies. The current hierarchies beginning from root = 1 are up to the level 5. Before going into details and...
1
by: Michael Yanowitz | last post by:
Hello: It appears that there is a 255 argument limit in Python 2.4.3? 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21...
9
by: eastcoastguyz | last post by:
I wrote a simple program to continue to create a very large file (on purpose), and even though there is plenty of disk space on that device the program aborted with the error message "File Size...
5
by: =?windows-1256?B?5eTPx+bs?= | last post by:
Python allow you to only take care about variable name and ignore it's size because pyhton dynamicly allocate it so what's the limit in the allocated size in the memory
2
by: Ron Hinds | last post by:
I'm getting this in an ASP application on IIS6/W2K3. The page in question is trying to return a XML file approximately 45MB in size. Changing this is not an option. Worked fine on IIS5/W2K. I tried...
6
by: OldBirdman | last post by:
Is there a good way, in Access 2002, to only allow a user to pick from the dropdown list for a combobox? Logically, this would 'Lock' the textbox portion and have the dropdown list unlocked. Many...
4
by: pgupta0609 | last post by:
u have said that integer length depends upon machine-to-machine. can i increase the integer limit on my own? does a 32-bit system has different limit than 64-bit system?
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.