BUG: ScrollBars Don't Display on DBList Control (137027)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q137027 SYMPTOMSSymptom 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 1Symptom 2STATUS
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.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbbug KB137027 |
---|
|