Results 1 to 5 of 5
  1. #1
    intern is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    6

    Pulling contacts from two tables into a third contact table

    Ok, I have 3 tables. One lists a contact in conjunction with the branch of the company and the trips that contact takes. The second lists a contact in conjunction with the branch of the company and which team they work with (may work with many). The third should list their email address and their phone number. Is it possible to pull the contact name and branch of company from tables 1 and 2 into 3 automatically, such that all I have to input into table 3 is additional contact information? If that is possible, is it also possible to only pull each contact/branch of company pairing once (I don't want four entries for Joe Shmoe/Sales, even if he's taken 4 trips)?


    Table 1
    Branch of Company Trip Dates Trip Location Contact
    Sales 4/1/14-4/12/14 Chicago Joe Shmoe
    HR 6/2/13-6/4/13 New York Jane Doe

    Table 2
    Branch of Company Company Team Contact
    Sales Blue Devils John Deere
    Sales Jets John Deere
    Sales Jets Joe Shmoe
    HR Sharks Jane Doe

    Table 3
    Contact Branch of Company Email Phone
    Jane Doe HR jane.doe@company.com 800-555-1234
    Joe Shmoe Sales joe.shmoe@company.com 800-555-1235
    John Deere Sales john.deere@company.com 800-555-1236



    Thanks for any help you can offer!

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Why do you need a 3rd table and not simply use a query to get your results and then enter your data on a form? Possibly a junction table is what you really need?

  3. #3
    intern is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    6
    I'm teaching myself database, so I'm afraid I'm not really sure what a junction table is...

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I can't really help you without seeing what you have. Start doing some research on Access. Use Google and Help.

  5. #5
    intern is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    6
    Thanks so much! I did some research on junction tables, and even if that's not what I'm doing, it led me to some helpful work-arounds. I think I've got it!

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

Similar Threads

  1. Pulling from Multiple Tables in VB
    By Canadiangal in forum Programming
    Replies: 12
    Last Post: 04-04-2013, 10:20 PM
  2. Relationships on tables for different types of contacts
    By JaimieRodgers in forum Database Design
    Replies: 2
    Last Post: 12-19-2012, 05:21 PM
  3. Replies: 1
    Last Post: 11-20-2012, 01:29 PM
  4. Replies: 3
    Last Post: 08-30-2012, 10:27 AM
  5. Pulling only certain data from tables.
    By stevman22889 in forum Access
    Replies: 2
    Last Post: 07-15-2010, 06:23 PM

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