goto last record of a list box

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
 
P

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
 
K

Ken Snell [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top