goto last record of a list box

  • Thread starter Thread starter Phil
  • Start date Start date
P

Phil

HI,

Is it possible to goto the last record of a list box when
a FORM is opened. I have a list box that pulls data from
a large table and if the box would goto the last record
then all the data would be in the box sooner.

Sound crazy???? I don't know......

Thanks,
Phil
 
Thanks,
That works perfect. Others who have large amounts data
for a list box might want to remember this code also. I
tried it and it also works in a combo box.

Thanks again
Phil
 
An alternative is to force the listbox to fill entirely in the form's OnLoad
event:

Private Sub Form_Load()
Dim lngCount As Long
lngCount = Me.ListBoxName.ItemCount
End Sub
 
Back
Top