Hi,
I want to call a sub when the user clicks on an item in the ListView. How?
Thanks for any help
- Jake
Printable View
Hi,
I want to call a sub when the user clicks on an item in the ListView. How?
Thanks for any help
- Jake
Try the ItemClick event.
:)
Thanks!
This is what I use in a program I am designing right now, (record#) is the index from my database.
this code is in the listview itself and it takes you to another form and sets the current recordset to the double clicked record#.
HOPE THIS HELPS YOU.
Code:Private Sub ListView2_DblClick()
Form1.Data1.Recordset.MoveFirst
Dim si As String
si = ListView2.SelectedItem
Form2.Data1.Recordset.Index = "record#"
Form2.Data1.Recordset.Seek "=", (si)
Form2.Show
Unload Form1
End Sub
thanks rjcarroll
that's cool, and exactly (well almost) what I was looking for..
- Jake