J
Jamie Allison
Hi Forum
I have a little problem in a Microsoft Access 2000 database i have.
What i have is two tables. One contains all the information of staff such
as
StaffID - NAME - ADDRESS - NoYearsWorked
The other table only has the field StaffID only.
For this lets call them tblDATA and tblEXCLUDE
What i want to do is have all of the data from tblDATA unless there is an
entry in tblEXCLUDE for it.
so as we add data to tblEXCLUDE as people retire the query will return less
results.
I hope this makes sense.
I know it is probably pretty simple to do some sql for it but i have been
struggling for ages with it. Just can't seem to get it working.
I tried a RIGHT JOIN and an INNER JOIN but they only return results when the
entry's are in both tables. Also tried a LEFT JOIN which returns no results.
Thanks for your help in advance.
Jamie
I have a little problem in a Microsoft Access 2000 database i have.
What i have is two tables. One contains all the information of staff such
as
StaffID - NAME - ADDRESS - NoYearsWorked
The other table only has the field StaffID only.
For this lets call them tblDATA and tblEXCLUDE
What i want to do is have all of the data from tblDATA unless there is an
entry in tblEXCLUDE for it.
so as we add data to tblEXCLUDE as people retire the query will return less
results.
I hope this makes sense.
I know it is probably pretty simple to do some sql for it but i have been
struggling for ages with it. Just can't seem to get it working.
I tried a RIGHT JOIN and an INNER JOIN but they only return results when the
entry's are in both tables. Also tried a LEFT JOIN which returns no results.
Thanks for your help in advance.
Jamie