M
manis
Guest
I have the following code attached to "mouse down" on a combo box. The code works just fine. All the values are available in the list. However, when I select a value, the combo box will not show it! why?!
The code
Private Sub List_Reports_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim obj As AccessObject
Dim dbs As Object
Set dbs = Application.CurrentProject
For Each obj In dbs.AllReports
If UCase(Mid(obj.Name, 1, 6)) = "REPORT" Then
List_Reports.AddItem (obj.Name)
End If
Next obj
End Sub
The code
Private Sub List_Reports_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim obj As AccessObject
Dim dbs As Object
Set dbs = Application.CurrentProject
For Each obj In dbs.AllReports
If UCase(Mid(obj.Name, 1, 6)) = "REPORT" Then
List_Reports.AddItem (obj.Name)
End If
Next obj
End Sub