SteveInAlabama
Board Regular
- Joined
- Aug 22, 2002
- Messages
- 94
I am using a Form which has a drop-down style Combobox. The Combobox's list is loaded via VBA, with 20+ items.
I am using the code below to highlight the default value for the list, which works fine: (for some reason, the method header is turned to asterisks, so use the Rem'd line to finish the line.
What I need however, is that this default shows mid-way down the pull-down list, not at the top. So for example, my screen shows eight of the 20 items in the pull-down; but the default is at the top whereas I want it to be in position 4 or 5 in the list. Can this be done?
I am using the code below to highlight the default value for the list, which works fine: (for some reason, the method header is turned to asterisks, so use the Rem'd line to finish the line.
Code:
Private Sub cboxItemDescr_DropButt*******()
' ******** above = DropButton_Click
If Len(cboxItemDescr.Text) = 0 Then
cboxItemDescr.ListIndex = iDefaultIndex
End If
End Sub
What I need however, is that this default shows mid-way down the pull-down list, not at the top. So for example, my screen shows eight of the 20 items in the pull-down; but the default is at the top whereas I want it to be in position 4 or 5 in the list. Can this be done?