What i am trying to to is get the selected list view item into a variable. More importantly a specific entry in the selected so that i can remove it from the database.
My code:
For Each i As ListViewItem In lstViewMembers.SelectedItems
        lstViewMembers.Items.Remove(i)
        Dim Remove As String
        Remove = lstViewMembers.Items(0)
        sql = "DELETE FROM tblMembers WHERE Name = '" & Remove & "'"
        da = New OleDb.OleDbDataAdapter(sql, con)
        da.Fill(ds, "Remove")
    Next
Name is the 2nd column in the list view, how would i remove that selected person from the database using the name?
Thanks,
Andy
 
    