Results 1 to 3 of 3
  1. #1
    XFiles_nerd is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Location
    Ann Arbor, MI
    Posts
    2

    How to copy list-box results using ctrl-c or command button

    I have created an access form that outputs the results of a series of drop down selections into a list-box. I am looking for a way to copy the results in the list-box, so the user can paste the results in documentation forms they use for clients.

    Is there a code I can enter, say for an 'On Mouse Down' Event, that would allow the user to use Ctrl-C to copy the entire selection or even just the results that appear in the ResultDetail list-box? I am also open to ideas using a command button, if the coding used is easier to understand.

    I have attached a copy of the database to give an idea of what I mean.
    Other details: Access 2007


    Windows XP

    Thank you in advance for any input. Peace.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    Review this for code on working with listbox http://allenbrowne.com/ser-50.html

    I think you will have to use a command button click event.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    XFiles_nerd is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Location
    Ann Arbor, MI
    Posts
    2
    Thanks for the response June7. I spent the evening reviewing the code on the link you provided and had a hard time incorporating a code that would do what I wanted. Which is fine, it just means I had to find an alternative solution. I decided to use a command button that would generate a report with the results in which I could do a Ctrl A, Ctrl C then be able to paste the table into the documentation.
    Someone also suggested using a subform for the results rather than a listbox, but it wasn't as 'pretty'. If anything I hope this helps others who may be looking for a solution relating to this.

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

Similar Threads

  1. Replies: 5
    Last Post: 02-21-2012, 07:33 AM
  2. Print reports in a tab ctrl in a tab ctrl
    By marcsessoms in forum Reports
    Replies: 1
    Last Post: 02-18-2012, 12:15 AM
  3. Replies: 10
    Last Post: 03-21-2011, 02:46 PM
  4. Replies: 3
    Last Post: 11-10-2010, 09:52 AM
  5. Replies: 1
    Last Post: 07-27-2010, 02:27 PM

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