Jump to content

sql get selected item in listviewer

Recommended Posts


I'm use the ADO.udf for this project. I used this code to read the selected items from the listview. It works fine, but I wanted to pull the string from column 2 selected item instead of showing me the whole column string. Any ideas on how to accomplish this?




Column 1 | Column 2 | Column 3

John | Buy school supply | 25

James | Donate to Charity| 30

Jacob | Buy Misc Items | 40


When I select James (Row 2); it's currently showing: James | Donate to Charity| 30. Which I only need it to show "Donate to Charity". The only reason I'm looking for the second column is if I have to delete the data, I can query to delete the record by user name = James and that status is equal to Donate to Charity.

Edited by Queener

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.