Results 1 to 3 of 3
  1. #1
    Bentley is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    50

    Copy a Record in a Datasheet Subform

    Hello,



    I am trying to copy a record in a subform in the datasheet view. I am having difficulty trying to get this set up without writing a bunch of code. Is there any info or easy way to do this? The end user cannot use the "copy""paste" buttons from the mouse as he is restricted with Runtime on his computer. I found this out after the fact....

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    just run an append query
    docmd.openquery "qaCopyRec"

    uses the subform ID as the source, then append to the target table.

  3. #3
    Bentley is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    50
    Thanks... Do I run the code in the Query in the "Build" part? I dont want to mess up the DB as it is already in use by the team.

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

Similar Threads

  1. Copy and Paste a Record in a subform
    By Joakim N in forum Programming
    Replies: 3
    Last Post: 10-30-2016, 12:41 PM
  2. Replies: 8
    Last Post: 08-26-2012, 11:11 PM
  3. Copy all record from subform
    By geniussam4u in forum Programming
    Replies: 4
    Last Post: 02-10-2012, 12:12 AM
  4. Replies: 5
    Last Post: 02-06-2012, 03:58 PM
  5. Replies: 16
    Last Post: 01-16-2012, 09:43 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