Results 1 to 7 of 7
  1. #1
    pharmacologist is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2019
    Posts
    39

    Best way to populate multiple fields in a table(A) from another table(B)'s fields using its(B) key

    I have a Access table that has a field relating it to a specific type of item in another table. That other table also contains information I'd like to include in fields in the first table as I routinely pull that data into Excel. Is there a way to populate those fields in the first table from fields in the second table using the second tables key in a field in the first table? Or is there a better way to do this to use in Excel?

    thanks

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi

    It would help if you explain the actual process using actual field names.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    update query.
    join the 2 tables and update all A fields need from B.

    pull the key off the form or user entry.

  4. #4
    pharmacologist is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2019
    Posts
    39
    Quote Originally Posted by mike60smart View Post
    Hi

    It would help if you explain the actual process using actual field names.
    I have an "offerings" table with a field called "product type" and a table of "product types" with other fields such as "size" and "color". I would like to be able to also have some of the fields, like "size", in my "offerings" table filled in with the value from the related record in the "product types" table so that when I pulled the table into Excel, it also contains these values.

  5. #5
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Can you upload your database?

  6. #6
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    You could use a ComboBox for "Product Type" and use that to populate fields on the form. Just be sure to include the data that you want populated, or like ranman say, use a query.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Build a query that retrieves related data and export query to Excel.
    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: 8
    Last Post: 04-16-2018, 05:49 PM
  2. Replies: 3
    Last Post: 12-02-2017, 02:04 PM
  3. Replies: 8
    Last Post: 08-02-2012, 10:50 AM
  4. Replies: 8
    Last Post: 12-05-2011, 01:55 PM
  5. Replies: 3
    Last Post: 10-06-2010, 06:33 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