G
Guest
I have created the follwing update query:
UPDATE tblEntitlements INNER JOIN TotalHolidaysBooked1 ON tblEntitlements.EmployeeID = TotalHolidaysBooked1.EmployeeID SET tblEntitlements.CurrentEntitlement = tblEntitlements!TotalEntitlement-[SumOfDays];
TotalHolidaysBooked1 is another query which sums the number of days holiday booked for each employee from this query the expression [SumOfDays] is created by this query - see below
SELECT DISTINCTROW HolidayQuery.EmployeeID, HolidayQuery.EmployeeName, HolidayQuery.Branches, Sum(HolidayQuery.Days) AS SumOfDays
FROM Holidays, HolidayQuery
GROUP BY HolidayQuery.EmployeeID, HolidayQuery.EmployeeName, HolidayQuery.Branches
HAVING (((HolidayQuery.EmployeeName) Is Not Null));
I get the following error message when I run the update query
"Operation Must Use An Updateable Query"
Can anybody propose a solution to this issue - many thanks
UPDATE tblEntitlements INNER JOIN TotalHolidaysBooked1 ON tblEntitlements.EmployeeID = TotalHolidaysBooked1.EmployeeID SET tblEntitlements.CurrentEntitlement = tblEntitlements!TotalEntitlement-[SumOfDays];
TotalHolidaysBooked1 is another query which sums the number of days holiday booked for each employee from this query the expression [SumOfDays] is created by this query - see below
SELECT DISTINCTROW HolidayQuery.EmployeeID, HolidayQuery.EmployeeName, HolidayQuery.Branches, Sum(HolidayQuery.Days) AS SumOfDays
FROM Holidays, HolidayQuery
GROUP BY HolidayQuery.EmployeeID, HolidayQuery.EmployeeName, HolidayQuery.Branches
HAVING (((HolidayQuery.EmployeeName) Is Not Null));
I get the following error message when I run the update query
"Operation Must Use An Updateable Query"
Can anybody propose a solution to this issue - many thanks