Results 1 to 2 of 2
  1. #1
    asterismw is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    5

    Copy subform

    I apologize if this has been aswered elsewhere. I've looked, but haven't found any clear answer on this. I'm also very new to VBA, and I don't really know what I'm doing.

    I have the following setup:



    Form
    -Record1
    --data1
    --data2
    --data3
    --Subform1
    ---recordA
    ---recordB

    I need to copy data1, data3 and Subform1 from Record1 and enter it into a new record, Record2, which also has a subform, Subform2. I've figured out how to copy data1 and data3, but I don't know how to copy Subform1. Alternatively, I could copy recordA and recordB from Subform1 and enter those into Subform2, but I don't know how to do that either. It seems like it should be similar to copying data1 and data2, but the answer is eluding me. Any help would be much appreciated.
    Last edited by asterismw; 03-11-2011 at 02:09 PM.

  2. #2
    asterismw is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    5
    Nevermind, I got it working. I found this code example by Allen Browne, which worked perfectly. I don't really understand it, but it works.

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

Similar Threads

  1. Copy and Paste Row (vb)
    By Computer202 in forum Programming
    Replies: 7
    Last Post: 03-28-2014, 01:59 AM
  2. Copy from one form to another
    By Adam858 in forum Forms
    Replies: 3
    Last Post: 07-29-2010, 01:27 PM
  3. Replies: 2
    Last Post: 03-04-2010, 02:04 PM
  4. copy info in subform as well as main form
    By Coolpapabell in forum Forms
    Replies: 0
    Last Post: 09-30-2009, 10:02 AM
  5. Copy a record
    By RHall in forum Programming
    Replies: 2
    Last Post: 02-23-2006, 07:40 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