Results 1 to 4 of 4
  1. #1
    zarfx4 is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    15

    Access Query build

    Hello...I think I might be over complicating this...



    Here is what I have...

    Table1 called data with a bunch of columns...whats important is as follows

    Date Ticket# OwnerID Shift

    Table2 called Employee with the following:

    Employee EID Shift

    What I need to do, is add the value in the the Shift column from my Employee table to the data table. EID and OwnerID are related....heres the issue...in the data table...ther are Employee IDs (EID) that do not exsist, nor will they ever, in the Employee table....

    So if i create a query, make a relation ship, im not getting 100% of my results. I need to add the Shift to the values I can, and leave the ones blank that do not have a result.

    Any suggestions?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try changing the join. With the query in design view, right click on the line between the two tables and edit the join. Choose the appropriate "Select all records from...".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    zarfx4 is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    15
    Tried that already...one join results in NOTHING...the other join results in only matched records where the EID is in both tables....

    This is why I said that I need ALL results from the data table and only the info from the employee table where it matches...

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The join should look like this in SQL view:

    ...FROM DataTable LEFT JOIN EmployeeTable ON...

    Can you post the db?
    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. Build Query from cmdButton
    By thart21 in forum Forms
    Replies: 1
    Last Post: 03-12-2010, 09:43 AM
  2. Hellp with Query Build
    By zarfx4 in forum Queries
    Replies: 0
    Last Post: 05-28-2009, 08:21 AM
  3. Replies: 0
    Last Post: 01-18-2009, 09:18 PM
  4. Build a book with records
    By phoobie in forum Reports
    Replies: 0
    Last Post: 09-06-2008, 10:56 AM
  5. Can access build a exe file?
    By jianwei87 in forum Programming
    Replies: 1
    Last Post: 08-04-2008, 06:48 AM

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