hello, i'm doing a searching form, here is my code
Dim con As New OleDbConnection
Dim cmd As New OleDbCommand
Dim rd As OleDbDataReader
con.ConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Bengkel\Project\db.mdb")
cmd.CommandText = "SELECT * from Book where authorName like '%" & textsearch.Text & "%'"
cmd.Connection = con
con.Open()
rd = cmd.ExecuteReader
Do While rd.Read
Dim lst As New ListViewItem(rd.Item("authorName").ToString)
lst.SubItems.Add(rd.Item("title").ToString)
lst.SubItems.Add(rd.Item("dateBook").ToString)
lst.SubItems.Add(rd.Item("categories").ToString)
lvList.Items.Add(lst)
Loop
con.Close()
then after that i'm double click the 1 of the row in listview and 1 form popup with all data in database. thanks if some one can help me.