Retrieve data from listview to textbox (VBA Access 2007)
-
-
Developer, I am looking for a code which retrieves data from the listview to textbox, combobox...etc. When I click on listview recode, I want it data pass to those textbox, combobox. Thanks,
Chuon Visoth Angkor Wat - Cambodia asp.net - c sharp beginner
TextBox1.Text = ListView1.SelectedItems(0).Text TextBox2.Text = ListView1.SelectedItems(0).SubItems(1).Text
-
TextBox1.Text = ListView1.SelectedItems(0).Text TextBox2.Text = ListView1.SelectedItems(0).SubItems(1).Text
It still doesnt work! Private Sub lvwStaff_ItemClick(ByVal Item As Object) Me.txtInsurance.Text = lvwStaff.selecteditems(0).Text Me.txtName.Text = lvwStaff.selecteditems(0).SubItems(1).Text Me.txtAddress.Text = lvwStaff.selecteditems(0).SubItems(2).Text Me.txtAddress.Text = lvwStaff.selecteditems(0).SubItems(3).Text End Sub
Chuon Visoth Angkor Wat - Cambodia asp.net - c sharp beginner
-
It still doesnt work! Private Sub lvwStaff_ItemClick(ByVal Item As Object) Me.txtInsurance.Text = lvwStaff.selecteditems(0).Text Me.txtName.Text = lvwStaff.selecteditems(0).SubItems(1).Text Me.txtAddress.Text = lvwStaff.selecteditems(0).SubItems(2).Text Me.txtAddress.Text = lvwStaff.selecteditems(0).SubItems(3).Text End Sub
Chuon Visoth Angkor Wat - Cambodia asp.net - c sharp beginner
Try to check with events lvwStaff_Click() and not from lvwStaff_ItemClick()
-
Try to check with events lvwStaff_Click() and not from lvwStaff_ItemClick()
-
It still does not work at all. It says "Object does not support this property or method." Thanks,
Chuon Visoth Angkor Wat - Cambodia asp.net - c sharp beginner
Can you show me the code.....for Listview, how the items are added?
-
Can you show me the code.....for Listview, how the items are added?
Is this thread solve his problem? I want this too. Pls help us to solve