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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grabbing Data from Listview 1

Status
Not open for further replies.

mcryme

Technical User
May 24, 2004
2
GB
I have a basic listview setup to display information from a table and i want to display the information in the row highlighted from the first column in a text box to allow me to open the form relating to that data.

i.e.

Column: A B C
111 222 333
444 555 666

If i click 444 i would want the text box to say 444.
If i click 222 i would want the text box to say 111.


Any ideas/help will be much appreciated.

MC RYME
 
just set the listviews fullrowselect to true then it will return the item as the first column

private sub listview1_itemclick(byval item as object)
me!testbox = item
end sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top