Here is qryRestrictedEm ployees:
This query is updateable. The difference in the above query and the one that includes the old departments is the select part that then makes the query un-updateable.
Code:
SELECT Employee.empID, Employee.empNo, Employee.empName, EmpIncidents.incidentDt, DateSerial(Year(EmpIncidents.incidentDt),Month(EmpIncidents.incidentDt)+3,1) AS RestrictionEnd FROM Employee INNER JOIN EmpIncidents ON Employee.empID=EmpIncidents.empID WHERE (((DateSerial(Year(EmpIncidents.incidentDt),Month(EmpIncidents.incidentDt)+3,1))>Date()) And ((EmpIncidents.incidentTypeID)=2 Or (EmpIncidents.incidentTypeID)=3));
Comment