Hello all. I seem to be having some issues with this query and I am not quite sure why. I'm using Access 2007 and have a rather simple comparison query that tests to exclude items that exist in related tables. Here is the code:
However, this does not work. That said, if I take the "<>" out for the comparison, it works fine to include only those that are in both tables. Here is the code that works for the inclusion (read: not what I want) query:
Please note that [Rotation Descriptions].RotationDescription has a 1-to-many relationship defined relating it to Assignments.Position.
Any ideas? I'm hoping this is just a simple mistake on my part.
Code:
SELECT [Rotation Descriptions].RotationDescription, [Rotation Descriptions].Supervisor
FROM [Rotation Descriptions] INNER JOIN Assignments ON [Rotation Descriptions].RotationDescription = Assignments.Position
WHERE ((([Rotation Descriptions].RotationDescription)<>[Assignments].[Position]))
GROUP BY [Rotation Descriptions].RotationDescription, [Rotation Descriptions].Supervisor;
Code:
SELECT [Rotation Descriptions].RotationDescription, [Rotation Descriptions].Supervisor
FROM [Rotation Descriptions] INNER JOIN Assignments ON [Rotation Descriptions].RotationDescription = Assignments.Position
WHERE ((([Rotation Descriptions].RotationDescription)=[Assignments].[Position]))
GROUP BY [Rotation Descriptions].RotationDescription, [Rotation Descriptions].Supervisor;
Any ideas? I'm hoping this is just a simple mistake on my part.