Next Record in ListBox

  • Thread starter Thread starter Martin
  • Start date Start date
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
 
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
 
Back
Top