Results 1 to 4 of 4
  1. #1
    mdavid is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    160

    copy complete list box to a second list box

    Hi, I have a list box on a form and I'd like to copy all the content (not just selected rows) to a 2nd list box.


    Any help appreciated

    David

  2. #2
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You cannot "copy" the contents. Controls do not "STORE" data.... tables store data.

    Set the 2nd list box row source to the same source as the first list box.

  3. #3
    mdavid is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    160
    Thanks Steve for pointing me in the right direction. This worked for me:

    listboxName.RowSource = "queryName"

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Excellent!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 06-02-2017, 08:20 AM
  2. Replies: 2
    Last Post: 11-04-2015, 03:21 PM
  3. Copy list box selections to another list box
    By Gotham_Knight in forum Forms
    Replies: 1
    Last Post: 03-07-2013, 10:40 AM
  4. Replies: 1
    Last Post: 03-05-2013, 06:53 PM
  5. Replies: 2
    Last Post: 03-07-2012, 08:39 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums