Results 1 to 6 of 6
  1. #1
    jobrien4 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    20

    Help creating outer join query

    As mentioned in another recent post, I am new to Access and am having trouble creating a join query the way I want.

    So I am creating a database that shows all the parts my company produces for various customers. Each part we produce will have a unique combination of Customer Number (number the company assigns internally), Part number (number customer gives us), and revision number (number customer gives us). I set those three fields as a composite key for the PartTable.

    Some (but not all) of these parts will have a special operation performed on it (let's call it Beveling). On the PartTable, I have a Yes/No checkbox for a Bevel field indicating whether the part has this operation performed. Then I set up a query to filter only parts with Bevel = Yes.

    From this query, I set up BevelInfoTable. This is to display the details of beveling operations. Some parts may multiple beveling operations performed on it.

    I tried to create a outer join query that displays fields from the PartTable and fields from the BevelInfoTable. However, it seems to use the Autonumber ID and places the beveling info with parts with the same Autonumber ID (instead of with the same Part #).

    What am I doing wrong? Is there a simplier or more efficient way of setting this up?

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    post a screenshot of your query design window

  3. #3
    jobrien4 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    20
    See the attachment

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    create a join from part number to part number. right click on the joint and go to properties. select the type of outer join you want and click ok.

  5. #5
    jobrien4 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    20
    Thanks TheShabz! That did it

  6. #6
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Glad you got it working. Without a join, you get what's called a 'cartesian product'. look it up. bad stuff.

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

Similar Threads

  1. Outer Join Composite Key
    By Lady_Jane in forum Queries
    Replies: 6
    Last Post: 08-26-2011, 09:44 AM
  2. Union query (or Inner/Outer join?)
    By LilMissAttack in forum Queries
    Replies: 4
    Last Post: 10-23-2010, 12:36 AM
  3. Ambiguous Outer Join Error
    By scruiks in forum Queries
    Replies: 3
    Last Post: 07-18-2010, 05:06 PM
  4. I can't get a full outer join to work
    By Bobt1993 in forum Queries
    Replies: 3
    Last Post: 03-20-2010, 10:05 AM
  5. Dynamic Query Outer Join Problem
    By mjack003 in forum Queries
    Replies: 0
    Last Post: 07-21-2006, 01:07 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