Results 1 to 5 of 5
  1. #1
    britney is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    10

    Combining data from 2 tables into 1 form

    I am building my first Access database at work after taking several college courses on the subject. I have imported Excel files into tables with the necessary information.



    In the first table, there is a list of departments (with unique department name to distinguish them), within the columns I have details like address, locations, etc. In a second table I have a list of providers (each provider's name is unique). The department which each provider works is listed in one column, and each department has one or more providers.

    What I would like to do is create a form in which I could input the department name, and the information about that department would populate from Table 1, and the list of all providers who work there (1 or multiple) and their info would populate from Table 2.

    In my efforts so far, what I have run into is Access is creating duplicating department information, and each provider appears on a separate form, rather than having more than one provider listed on one form. I am not really sure what to even search for to find steps to perform this, so even if you can just let me know what this would be called, it would be a huge help. Thank you in advance!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    you want 3 tables:
    tDepts, tProviders, tDeptProviders

    tDept table:
    DeptID, DeptName, Manager,etc
    Acct, Accounting, Joe Smith

    tProvider table:
    ProvID, ProvName, ProvAddr
    34, AT&T,....
    22, Spectrum Cable, ….

    tDeptProviders is a child table of tDepts:
    DeptID, ProvID
    Acct, 34
    Acct, 22


    in the single record form for Dept, add a subform for tDeptProviders.
    then add providers to 1 dept using a combo or similar.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Typically that would be done with a form based on department and a subform based on provider. Master/child links keep them in sync with each other.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    britney is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    10
    Wow, I think between these two comments, I was able to create what I needed! Thank you both for your input

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 27
    Last Post: 02-14-2017, 09:36 AM
  2. Combining Data from two tables
    By psulions83 in forum Queries
    Replies: 2
    Last Post: 12-05-2014, 02:40 PM
  3. combining 3 tables
    By instanceoftime in forum Import/Export Data
    Replies: 3
    Last Post: 11-13-2013, 01:46 PM
  4. Replies: 3
    Last Post: 08-18-2012, 03:25 AM
  5. Replies: 4
    Last Post: 12-16-2009, 07: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