Navigating a List Box Programatically

  • Thread starter Thread starter Robert B via AccessMonster.com
  • Start date Start date
R

Robert B via AccessMonster.com

I'm using a list box as a selector, editing the selected record in another
form, then returning to the list box. I'd like the list box to highlght the
record just editied upon return rather than going to the top. Sounds like it
should be simple, but I can't find an answer. Many thanks for any help.

Bob Boyden
 
Hi,


You can try:


Me.List3 = Me.List3.ItemData(1)


to highlight the second item in the listbox. ListIndex can also be used, but
then, you NEED to set focus on the control before making an assignment to
the ListIndex property ( as in the VBA example in the help file).


Hoping it may help,
Vanderghast, Access MVP
 

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

Back
Top