Default value of a listbox scrolling the listbox

M

Max Moor

Hi All,
I have a listbox whose default value is set in code by a line like:


Me!MyListbox.DefaultValue = "MyListbox.[ItemData](" & intCount & ")"


where "intCount" is an index set by a search for the record I want to
view. I use this in a number of places in my code. I have one place where
setting this does not make the listbox scroll to the record I set, though.
Can anyone telkl me why? What conditions have to be met for this piece of
code to scroll the listbox?

- Max
 

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