Try changing the INNER JOIN to a LEFT JOIN and see what happens.
Try changing the INNER JOIN to a LEFT JOIN and see what happens.
Stll the same results!
Is it possible that there could be two PERSONNEL_NO's the same and only the COMPANY will make them unique?
Obviously the selection Criteria is a little more complicated that we have been discussing here. Any chance you can post the db?
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.
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.
No, there wouldnt be a duplicate.
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)
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.
Understood.