Results 1 to 2 of 2
  1. #1
    kevinscomp is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2013
    Posts
    9

    Copy items in a column to the clipboard

    I am in need of some help. I am looking to create a button in access that will allow a field to be copied the the clipboard based on information in a query and then separated by a ";" and then can be pasted in another program.



    just some background to my database.
    I have created a database to keep track of membership. In the Member Personal Info Table I have collected their email address's and then created a query "Active Member Personal Info" for Active Members to have their name and Email displayed in the query. Now I am trying to take the 140 members email address and paste it in a gmail BCC line by clicking paste rather than doing each individual record and then copying and pasting.

    anyone have ideas or can help would be greatly appreciated. I havent worked with Macro's in years and not sure where to start on this but i am thinking i need to build and expression.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Requires VBA code that opens recordset, loops through records, builds the address string.

    Review: https://www.accessforums.net/program...ook-21903.html

    Populate a textbox with the constructed string, have a button to copy textbox contents to clipboard:
    Private Sub cmdCopy_Click()
    Me!txtAddresses.SetFocus
    DoCmd.RunCommand acCmdCopy
    End Sub
    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.

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

Similar Threads

  1. Replies: 2
    Last Post: 12-05-2012, 09:39 PM
  2. Replies: 4
    Last Post: 06-21-2012, 11:43 AM
  3. Replies: 8
    Last Post: 05-26-2011, 09:23 AM
  4. Use VBA to copy table contents to the clipboard?
    By Deutz in forum Programming
    Replies: 3
    Last Post: 10-21-2010, 10:59 PM
  5. Replies: 1
    Last Post: 03-13-2010, 08:38 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