Results 1 to 3 of 3
  1. #1
    glinch is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    5

    Linking tables on a form

    Hi all, I'm becoming a little stuck here

    I have 3 tables

    tblCompanyName -> tblCompOffice -> tblEmployee

    tblCompanyName: Consists of
    CompID
    CompName

    tblCompOffice:
    OffID
    CompID


    ...various details

    tblEmployee:
    EmpID
    OffID
    ....various details

    So if its not clear the relationships are: A company can have many offices, Any office can have many Employees

    My problem is this:

    I have an employee form:
    I would like this form to show the Company Name of the employee
    (accessing it from the OffID Primary Key)

    How do I work backwards so to speak with query to do this, or should I include a CompID field in the tblEmployee.
    Would this be bad practice and a repetition of data?

    Thanks in advance for any help

  2. #2
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    In your query, use all three tables and show the CompName field there. It will then be available to your form for display.

  3. #3
    glinch is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    5
    cheers pal thats helped

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

Similar Threads

  1. Linking Tables
    By Richard Hale in forum Access
    Replies: 0
    Last Post: 01-25-2010, 02:09 PM
  2. Linking built queries to new tables
    By prag in forum Queries
    Replies: 6
    Last Post: 10-09-2009, 01:07 PM
  3. Linking two tables
    By nitsua0491 in forum Forms
    Replies: 2
    Last Post: 10-02-2009, 07:48 AM
  4. Linking Tables?
    By briancb2004 in forum Access
    Replies: 0
    Last Post: 09-29-2008, 01:14 PM
  5. Linking tables and forms
    By vgatell in forum Access
    Replies: 0
    Last Post: 02-10-2007, 01:37 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