Results 1 to 4 of 4
  1. #1
    jbickl is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    14

    Question Use a command button to paste record field onto clipboard

    Hello,

    Basic: On a continuous form I want to have a button next to each record, which when pressed inserts a particular field from that record onto the clipboard.

    Detailed: Every record in my table, tblRequisitions, has an associated hyperlink stored in a field "Hyperlink" (the hyperlink is different for each record). The users want a convenient way to copy the hyperlink so that they can paste it outside of Access. Instead of putting the entire hyperlink as a textbox, I want to display a convenient button for each record entry on the continuous form. When the user clicks this button, I want Access to put the associated hyperlink for that record in the clipboard.

    First: Is this possible? Second: How do I do it?



    Any guidance is much appreciated.

    Thanks!

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I have no idea how to do that, but couldn't you do the paste part as well? Where is the user pasting it? Couldn't you open the relevant hyperlink using Shell thereby saving the user having to paste it themselves?

  3. #3
    jbickl is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    14
    The user is pasting the hyperlink in different ways: word documents, excel spreadsheets, and emails.

    Solved it:

    Me.(OBJECT).SetFocus
    DoCmd.RunCmd acCmdCopy

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Excellent! Are you ready to use the Thread Tools at the top of the thread and mark this thread as Solved?

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

Similar Threads

  1. Replies: 4
    Last Post: 07-22-2011, 12:52 PM
  2. Replies: 10
    Last Post: 03-21-2011, 02:46 PM
  3. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  4. Updating another record table with command button
    By erlan501 in forum Programming
    Replies: 5
    Last Post: 04-26-2010, 09:03 AM
  5. Command button help - delete record
    By Zukster in forum Forms
    Replies: 0
    Last Post: 08-27-2009, 08:47 AM

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