Results 1 to 4 of 4
  1. #1
    lccrews is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Location
    Los Angeles
    Posts
    194

    How to append data from one table to another through query.


    I'm not exactly sure how to do this, but I can't see why Access wouldn't be able to do it... I have tbl_1 which has the information I already have. I have tbl_2 which has information I want to append to tbl_1. How do I do this? Please see attachments for an example. In reality, tbl_1 has about 4133 records (10 entries for 1 item) and tbl_2 has 306 records (1 entry for 1 item). The reason for 10 entries to 1 item is each record has 2 separate identifiers. Click image for larger version. 

Name:	tbl_1.png 
Views:	6 
Size:	105.1 KB 
ID:	30308Click image for larger version. 

Name:	tbl_2.png 
Views:	6 
Size:	51.6 KB 
ID:	30309

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Why are you showing data in spreadsheet?

    You want to populate tbl_1 Batch Size with values from tbl_2 Batch Size? Try a query that joins the two tables on Item and YieldBatch fields.

    Why are you duplicating data in two tables? Why are description and Batch Size in both tables?

    I see more than 10 entries for 1 Item.
    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.

  3. #3
    lccrews is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Location
    Los Angeles
    Posts
    194
    Hi again June7. Thank you for that. I was trying to figure out how to add information to my current table. I didn't think about creating a whole new table. Now I can delete the old table. I'm not duplicating data. I received new information for the same records. My table is like this: for every bulk item, there are a number of ingredients, different levels of batches, etc. Rather than have 10 tables I created 1 table with identifiers to 'filter' the data. I received new information today to add to my table but it's formatted on a 1-1 basis and not a 1-24 basis. I'm going to try to make a table table from these two tables and see how that goes. That's what you meant by join the tables right?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    I meant build a query that joins related data. Yes, a query is like a table.

    That query can be the basis for an UPDATE action.
    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. I need append data from table to another
    By hosni4eg in forum Access
    Replies: 5
    Last Post: 05-15-2017, 08:08 AM
  2. Replies: 1
    Last Post: 07-05-2015, 11:11 PM
  3. Replies: 2
    Last Post: 02-28-2013, 07:00 PM
  4. Data append to table
    By ali zaib in forum Access
    Replies: 4
    Last Post: 01-13-2012, 11:22 AM
  5. Replies: 1
    Last Post: 10-06-2011, 08:37 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