scrolling a listbox

S

StuJol

i have an access 2003 database. i have a listbox on a form named "List0". I
use the additem method in vb code to update the values in the list box. i may
add 100 values to the list box. what im trying to do via vb code is to scroll
the listbox to the bottom everytime i update it so the latest item to be
added is always visible.

does anyone know how to acheive this?
 
J

Jeff Boyce

I can't tell from your description whether you are adding items to a table
underlying the listbox, or adding values directly to the listbox. If the
latter, have you considered using a table as a source via a query. It might
be more maintainable.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
S

StuJol

its works except for one thing! i can see the list box updating as the black
bar scrolls down but no text is visible? if i add msgboxes into the code,
clicking ok refreshes the listbox and i can see the values.

any ideas?
 

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