Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Retrieve data from listview to textbox (VBA Access 2007)

Retrieve data from listview to textbox (VBA Access 2007)

Scheduled Pinned Locked Moved Visual Basic
csharpasp-netlearning
7 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    misCafe
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • M misCafe

      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

      P Offline
      P Offline
      Paramu1973
      wrote on last edited by
      #2

      TextBox1.Text = ListView1.SelectedItems(0).Text TextBox2.Text = ListView1.SelectedItems(0).SubItems(1).Text

      M 1 Reply Last reply
      0
      • P Paramu1973

        TextBox1.Text = ListView1.SelectedItems(0).Text TextBox2.Text = ListView1.SelectedItems(0).SubItems(1).Text

        M Offline
        M Offline
        misCafe
        wrote on last edited by
        #3

        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

        P 1 Reply Last reply
        0
        • M misCafe

          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

          P Offline
          P Offline
          Paramu1973
          wrote on last edited by
          #4

          Try to check with events lvwStaff_Click() and not from lvwStaff_ItemClick()

          M 1 Reply Last reply
          0
          • P Paramu1973

            Try to check with events lvwStaff_Click() and not from lvwStaff_ItemClick()

            M Offline
            M Offline
            misCafe
            wrote on last edited by
            #5

            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

            P 1 Reply Last reply
            0
            • M misCafe

              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

              P Offline
              P Offline
              Paramu1973
              wrote on last edited by
              #6

              Can you show me the code.....for Listview, how the items are added?

              J 1 Reply Last reply
              0
              • P Paramu1973

                Can you show me the code.....for Listview, how the items are added?

                J Offline
                J Offline
                Jayvee Pacanza
                wrote on last edited by
                #7

                Is this thread solve his problem? I want this too. Pls help us to solve

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups