This One Is Working
..and this one is workingSELECT DegreeDate.EmplID, EmpList.FirstName, EmpList.LastName, EmpList.Position, DegreeDate.DegreeDate, Max(DegreeDate.Degree) AS [Current Degree]
FROM EmpList INNER JOIN DegreeDate ON EmpList.ID = DegreeDate.EmplID
GROUP BY DegreeDate.EmplID, EmpList.FirstName, EmpList.LastName, EmpList.Position, DegreeDate.DegreeDate
HAVING (((EmpList.Position)="1") AND ((DegreeDate.DegreeDate)<Now()-365*4) AND ((Max(DegreeDate.Degree))=11));
However merging both above into one with "OR" operator throw an error of "Data Type Mismatch..". What am I doing wrong?SELECT DegreeDate.EmplID, EmpList.FirstName, EmpList.LastName, EmpList.Position, DegreeDate.DegreeDate, Max(DegreeDate.Degree) AS [Current Degree]
FROM EmpList INNER JOIN DegreeDate ON EmpList.ID = DegreeDate.EmplID
GROUP BY DegreeDate.EmplID, EmpList.FirstName, EmpList.LastName, EmpList.Position, DegreeDate.DegreeDate
HAVING (((EmpList.Position)="2") AND ((DegreeDate.DegreeDate)<Now()-365*3) AND ((Max(DegreeDate.Degree))=11));
SELECT DegreeDate.EmplID, EmpList.FirstName, EmpList.LastName, EmpList.Position, DegreeDate.DegreeDate, Max(DegreeDate.Degree) AS [Current Degree]
FROM EmpList INNER JOIN DegreeDate ON EmpList.ID = DegreeDate.EmplID
GROUP BY DegreeDate.EmplID, EmpList.FirstName, EmpList.LastName, EmpList.Position, DegreeDate.DegreeDate
HAVING (((EmpList.Position)="1") AND ((DegreeDate.DegreeDate)<Now()-365*4) AND ((Max(DegreeDate.Degree))=11)) OR (((EmpList.Position)="2") AND ((DegreeDate.DegreeDate)<Now()-365*3) AND ((Max(DegreeDate.Degree))=11));