K
KarenB
I have the following code on the OnClick event of a command button, which
works great in clearing all of the selections from the list box, but I want
to end up at the beginning of my list after this runs, rather then the end.
How do I do that?
Private Sub cmdClearMe_Click()
Dim lngListCnt As Long
lngListCnt = Me.lstAccountName.ListCount - 1
For CNTR = 0 To lngListCnt
Me.lstAccountName.Selected(CNTR) = False
Next CNTR
End Sub
works great in clearing all of the selections from the list box, but I want
to end up at the beginning of my list after this runs, rather then the end.
How do I do that?
Private Sub cmdClearMe_Click()
Dim lngListCnt As Long
lngListCnt = Me.lstAccountName.ListCount - 1
For CNTR = 0 To lngListCnt
Me.lstAccountName.Selected(CNTR) = False
Next CNTR
End Sub