work4livinsean
Programmer
Hi everyone, I am having a serious problem and cannot figure out how to fix it. I have a new query that has one query and a table. The query and table are not joined but I need the table there to exclude information from the original query. Here is the SQL Statement:
SELECT queAPTNoSubmit.Group, queAPTNoSubmit.Name, queAPTNoSubmit.Empl_ID, queAPTNoSubmit.APEX_ID, queAPTNoSubmit.Department
FROM tblExcludePerson, queAPTNoSubmit
WHERE (((queAPTNoSubmit.APEX_ID)<>[tblExcludePerson]![ApexID]));
The statement actually works when I only have one data entry for the tblExcludePerson. However, as soon as I add someone new to the table my new query doubles all the data. So, I am left with twice the amount of data I should have but it still excludes one set of the data that should be excluded. Can anyone help me or explain to me why it doubles the data? I would really appreciate it!
Thanks in advance.
SELECT queAPTNoSubmit.Group, queAPTNoSubmit.Name, queAPTNoSubmit.Empl_ID, queAPTNoSubmit.APEX_ID, queAPTNoSubmit.Department
FROM tblExcludePerson, queAPTNoSubmit
WHERE (((queAPTNoSubmit.APEX_ID)<>[tblExcludePerson]![ApexID]));
The statement actually works when I only have one data entry for the tblExcludePerson. However, as soon as I add someone new to the table my new query doubles all the data. So, I am left with twice the amount of data I should have but it still excludes one set of the data that should be excluded. Can anyone help me or explain to me why it doubles the data? I would really appreciate it!
Thanks in advance.