BUG: ScrollBars Don't Display on DBList Control
Article ID: 137027
Article Last Modified on 12/9/2003
APPLIES TO
- Microsoft Visual Basic 4.0 Standard Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 16-bit Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
This article was previously published under Q137027
SYMPTOMS
Symptom 1
When binding a DBList control to a Data control whose RecordSource property
is set to a Select statement with a Where clause, the ScrollBars do not
display on the DBList control. This is true even if the number of rows
returned by the Select statement exceeds the list size of the control (the
number of items DBList can display without scrolling).
Symptom 2
Also, if the height of the DBList control is set to display only one item
at a time, the ScrollBars do not display on the DBList control.
CAUSE
The DBList ScrollBar relies on the RecordCount property of the RecordSet.
When using Select with a Where clause in the RecordSource property,
RecordSet.RecordCount returns a value of 1. Usually this count is less than
the maximum number of items DBList can display without scrolling, so
ScrollBars are not displayed.
WORKAROUND
Listed below are different ways to work around this problem depending on
the symptoms occurring:
Symptom 1
Symptom 2
STATUS
Microsoft has confirmed this to be a problem in the DBList control included
with the products listed above. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
Additional query words: 4.00 buglist4.00 vb4win vb4all
Keywords: kbbug KB137027