Next Record in ListBox

M

Martin

Is there an easy way to move to the next record in a list box after the list
box has been clicked on?

Martin
 
S

Stuart McCall

Martin said:
Is there an easy way to move to the next record in a list box after the
list
box has been clicked on?

Martin

Try the following code in your listbox's AfterUpdate event:

Dim idx As Long

With Me.MyListbox
idx = .ListIndex
If .ListCount > 1 And idx < .ListCount Then
.ListIndex = idx + 1
End If
End With
 
Top