Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

    Try changing the INNER JOIN to a LEFT JOIN and see what happens.

  2. #17
    Pells is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    25
    Stll the same results!

  3. #18
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is it possible that there could be two PERSONNEL_NO's the same and only the COMPANY will make them unique?

  4. #19
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Obviously the selection Criteria is a little more complicated that we have been discussing here. Any chance you can post the db?

  5. #20
    Pells is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    25
    There is only 1 personnel_no per person in the EMPDET table, but yes, there are more than 1 personnel_no in the EMPTRANS table, but unique to an individual. There is only one COMPANY per person in each of the tables.

  6. #21
    Pells is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    25
    Quote Originally Posted by RuralGuy View Post
    Obviously the selection Criteria is a little more complicated that we have been discussing here. Any chance you can post the db?
    No problem.

    Can this be emailed to you?

  7. #22
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You are testing for both PERSONNEL_NO and COMPANY so I guess it is possible there cound be a duplicate PERSONNEL_NO in another COMPANY.

  8. #23
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by Pells View Post
    No problem.

    Can this be emailed to you?
    I'll PM you with my addy.

  9. #24
    Pells is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    25
    No, there wouldnt be a duplicate.

  10. #25
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Then you have defined it in the Relationship window.
    FROM EMPDET INNER JOIN EMPTRANS ON (EMPDET.PERSONNEL_NO = EMPTRANS.PERSONNEL_NO) AND (EMPDET.COMPANY = EMPTRANS.COMPANY)

  11. #26
    Pells is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    25
    Yes, that is correct.

    I will send you a copy of the DB. I will have to remove some confidential information first, but will be with you shortly.

    many thanks for all your help, much appreciated.

  12. #27
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Understood.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 10-20-2010, 04:08 PM
  2. Replies: 3
    Last Post: 03-25-2010, 12:31 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