Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue with ListView & Access 2000

Status
Not open for further replies.

vamoose

Programmer
Oct 16, 2005
320
MX
I am experimenting with populating and conditional formatting data in a ListView and loving it...

I start by populating and formatting the data, this works great. Now I select 1 line item from the ListView and click a button on the form which moves the focus from the listview to the button. The selected row moves, or indexes, up or down 1 position in the list depending on which button was selected. This is also working great.

My question is how do I set the focus back to the ListView box and specifically select the row that was just moved.

Thanks so much.


 
I finally got it. The code goes like this:

Set ListView1.SelectedItem = ListView1.ListItems(27)

Thanks for looking.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top