Results 1 to 5 of 5
  1. #1
    EHQG is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    2

    Copy data from subform to table

    I am looking to copy records that I have edited in a sub form and put them into a new table I have created.
    The sub form shows me all of my active jobs for a specific person and it has two fields on it so I can add details beside the records. What I want to do is when i click save, I want only the records that have been edited to save into a table.
    Would this be possible? What would I need to do to get this to work?


    If you need anymore info let me know.

    Many Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    the exact query you use to show the subform data can be used in an append query.
    qsSubForm = select * from table where [id]=forms!myForm!txtID

    then use it in an append query to your other table
    qaAddSubFormData =
    insert into Newtabl from qsSubForm

    so all you need do is run: qaAddSubFormData

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Isn't the subform bound to a table???

  4. #4
    EHQG is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    2
    Quote Originally Posted by ssanfu View Post
    Isn't the subform bound to a table???
    Apologies if i haven't been too clear in my post. The subform is bound to a query that links 2 tables. (The subform is a datasheet). I have a combobox that allows me to filter the subform by person. So by doing this each person can go into the subform, change it to only show their jobs and add their predicted hours and comments beside some jobs. Once they have done this they will hit Save and close which will do just that but will also copy over the records that had data entered into them to an existing table . I hope this makes sense,

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    EHQG,

    Clarity is key to getting a focused response.
    It might be more efficient if you could post a copy of your database along with specifics and examples of what you are trying to accomplish. Clearly describe the data you are adding and what you expect as output/result.

    Good luck.

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

Similar Threads

  1. Copy Data from One Subform to another Subform.
    By Kaloyanides in forum Access
    Replies: 4
    Last Post: 05-12-2017, 05:04 PM
  2. Copy data in table
    By Tommo in forum Access
    Replies: 3
    Last Post: 09-27-2015, 07:23 AM
  3. How to copy data within the same table?
    By price12 in forum Access
    Replies: 1
    Last Post: 04-23-2014, 08:34 PM
  4. copy data from one table to another
    By Sureshbabu in forum Access
    Replies: 1
    Last Post: 01-08-2012, 01:27 PM
  5. copy data from a subform to the main form
    By declanfogarty in forum Programming
    Replies: 1
    Last Post: 06-23-2011, 05:31 AM

Tags for this Thread

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