Microsoft KB Archive/112745

= ACC2: Tips for Improving Combo and List Box Performance =

Article ID: 112745

Article Last Modified on 7/8/2002

-

APPLIES TO


 * Microsoft Access 2.0 Standard Edition

-



This article was previously published under Q112745



Moderate: Requires basic macro, coding, and interoperability skills.



SUMMARY
This article lists several things you can do to improve the speed and performance of combo boxes and list boxes in your Microsoft Access applications.



MORE INFORMATION
To improve combo and list box performance, try these tips:

 Include only fields from the record source that are absolutely necessary. Extra fields can decrease combo or list box performance. Index the first field that is displayed in the combo box or list box. Index any other fields used for criteria (such as when a combo box or list box is based on a criteria query). In combo boxes, set the AutoExpand property to No if it is not needed. Do not hide the combo box's bound column by setting its width to 0 in the ColumnWidth property.  Create a default value for combo boxes. Combo boxes try to match whatever is entered in them, so if there is no default value for the combo box, the combo box tries to match a null value when it is first opened. An example of a default value for a combo box is:

<pre class="fixed_text">     =[combobox].ItemData(0)

In the example above, [combobox] is the name of the combo box, and ItemData(0) refers to the first row of the combo box. The default value of the combo box becomes the value in its first row. </li> Use unbound subforms to display data when there is a large number of records.</li> The first non-hidden column in your combo box should have a Text data type, not a Numeric data type. In order to find a match in the list, Microsoft Access will have to convert the numeric value to text to do the character by character match. If the data type is Text, Microsoft Access does not have to do this conversion.</li></ul>

Additional query words: optimize

Keywords: kbinfo kbusage KB112745

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.