Hello All,
I am trying to create a query with 2 queries by writing my own SQL but it not giving me the correct return set. The RS should be record where 2 fields math but 2 others do not.
Here is my code:
What am I doing wrong here?
I am trying to create a query with 2 queries by writing my own SQL but it not giving me the correct return set. The RS should be record where 2 fields math but 2 others do not.
Here is my code:
Code:
SELECT [Qry_EngineerLic-PE].EmpID, [Qry_EngineerLic-PE].FName, [Qry_EngineerLic-PE].StateID
FROM [Qry_EngineerLic-PE] , Qry_FromVision_PELicenses
WHERE [Qry_EngineerLic-PE].EmpID = Qry_FromVision_PELicenses.Employee AND [Qry_EngineerLic-PE].StateID<>Qry_FromVision_PELicenses.StateRegistered;