Results 1 to 4 of 4
  1. #1
    Helystra is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Posts
    35

    ambiguous join query error

    I need some help with a join query/table I'm trying to create. I'm fairly new to access so please bare with me if I'm doing this all wrong.



    I have created the following tables with their pertinent fields:

    tblEmp: EmpRowID (PK autonumber), EmpID (company assigned ID), LastName, FirstName, MI, Status, Staff Type

    tblBudgetCodes: BCRowID (PK autonumber), BudgetCodeType(wage type), RateType (reg or ot), Fund, Function, Object, SubObject, Org and BudgetYear (these 6 fields each contain a separate section of the budget code itself)

    tblEmpWages: WagesRowID (PK autonumber), EmpRowID (FK from tblEmp), BCRowID (FK from tblBudgetCodes), Rate ($/hr)

    Relationship information:
    1 to many relationship set up between tblEMP and tblEmpWages
    1 to many relationship set up between tblBudgetCodes and tblEmpWages.

    I have 12 pre-set budget codes and almost 700 employees. Each employee can have anywhere from 2 to all 12 budget codes with different rates for each. I had originally intended the tblEmpWages to be where all the joined information was housed. But I'm having trouble creating a join query to bring all the employees and the budgetcodes together. I'm getting an ambiguous outer join error on the query. I'm wondering if my problem is in the join type and relationship set up.

    Any ideas?

  2. #2
    Helystra is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Posts
    35
    I changed the join type in the relationship tables to left joins from tblemp to tblempwages and then again between tblbudgetcodes and tblemp wages. Then I created a query to join all the budget codes and all the employees first and then used that query to join to the empwage table.

    That allowed me to pull all the employees and have all 12 budget codes applied to each employee. But now the wagerowid field is not populating with autonumbers and I can't input any data on the form I've created.
    Last edited by Helystra; 10-24-2013 at 12:43 PM.

  3. #3
    hrenee is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    41
    http://www.rogersaccesslibrary.com/f..._topic238.html

    The ER Diagraming may help you out.

  4. #4
    Helystra is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Posts
    35
    Thanks because now I'm having a problem entering data on the form that ties into that query. The autonumbers aren't assigning either. So I'll have a look at that.

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

Similar Threads

  1. Ambiguous Join Fix
    By kagoodwin13 in forum Queries
    Replies: 4
    Last Post: 06-03-2013, 02:01 PM
  2. Replies: 2
    Last Post: 06-23-2012, 11:59 PM
  3. Replies: 1
    Last Post: 02-19-2012, 07:21 PM
  4. Compile Error - Ambiguous Name ???
    By jacek.w.bak in forum Reports
    Replies: 1
    Last Post: 07-07-2011, 09:25 AM
  5. Ambiguous Outer Join Error
    By scruiks in forum Queries
    Replies: 3
    Last Post: 07-18-2010, 05:06 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