Microsoft KB Archive/280133

= ACC2000: Scroll Box Moves Up After Being Moved to the Bottom of the Scroll Bar =

Article ID: 280133

Article Last Modified on 6/25/2004

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q280133



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

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).



SYMPTOMS
When you have a combo box or a list box on a form and the row source of the combo box or the list box is based on either a large table, query, or SQL statement or on a linked table, the scroll box on the combo box or the list box does not always move down the scroll bar when you click the scroll arrow. Once you reach the bottom of the list, however, the scroll box jumps to the bottom of the scroll bar.



CAUSE
When you first click the scroll arrow to view the list of a combo box or a list box, the control does not know how many records are in its row source.



RESOLUTION
Avoid using large tables (and other row sources) with combo boxes and list boxes that force end-users to have to scroll through more than 100 items. Good development and design encourages developers of a database application to find ways to limit the number of items displayed in a combo box or a list box.

The following Knowledge Base articles illustrate some methods that you can use to limit the number of items displayed in a combo box or a list box:

209576 ACC2000: How to Create Synchronized Combo Boxes

209595 ACC2000: How to Synchronize Two Combo Boxes on a Form



MORE INFORMATION
When you click the scroll arrow on a combo box or a list box, Access begins to read the data in the row source of the combo box or the list box. In order for the scroll box to move down the scroll bar, the combo box must know how many items are in the list, so that it can calculate the correct physical location of the scroll box. For example, if you have 100 records in the row source, and you are viewing the 50th record in the list, the scroll box should appear halfway down the scroll bar.

However, combo boxes and list boxes in Access do not become fully aware of how many records are in the row source until you have scrolled down to the bottom of the list. At that point, the scroll box will adjust itself automatically, relative to any item in the list that you select.

Additional query words: prb

Keywords: kbprb KB280133

-

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

© Microsoft Corporation. All rights reserved.