Listview scroll question

W

whistler

I have a listview (i.e. not a LISTBOX) in one of my forms with below it some fields that show information belonging to the selected record.

When the form opens the first record in the listview is selected by default and the additional fields below display fine.

Also, when I click on another record in the listview, the additional fields display fine.

What I want to accomplish is the following: I want the user to be able to use the "arrow" keys (up and down) to scroll through the listview records with the below fields refreshing. Thus the user avoids switching between keyboard and mouse clicking.

Question: which event on the listview should I use to assign vba code to ?

Any help is appreciated.

Thanks ,

Jos


--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
 
K

Ken Warthen

eActually, that's ItemClick, not Item_Click. You can probably copy and past
the same code you're using for the Click event of the listview control.

Ken
 

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