kwalters110
MIS
Hi
I am trying to create an update query but I get the following error:
Operation must use an updatable query
The query joins two a table (Daily Log) to a query (Time and Attendance) and then is supposed to update 2 fields in Daiy Log to the appropriate times in Time and Attendance for yesterday. Here is the SQL
UPDATE [Daily Log] INNER JOIN [Time And Attendance] ON [Daily Log].BADGE_TXT = [Time And Attendance].EMPLOYEE SET [Daily Log].[SCH IN] = CDate([Time And Attendance]![DATE_IN] & " " & [Time And Attendance]![TIME_IN]), [Daily Log].[SCH OUT] = CDate([Time And Attendance]![DATE_OUT] & " " & [Time And Attendance]![TIME_OUT]), [Daily Log].TA_Flag = "TA"
WHERE ((([Time And Attendance].DATE_IN)=Date()-1));
I think the cause might be the fact that Time and Attendance is actually a union of 2 views (non-updateable) from my server. I am unioning Current T&A with the history to get a complete collection of data to run this against. Anyone thing I might be on the right track with that being the problem? and if so, anyone have any good ideas to get around it?
-Keith
I am trying to create an update query but I get the following error:
Operation must use an updatable query
The query joins two a table (Daily Log) to a query (Time and Attendance) and then is supposed to update 2 fields in Daiy Log to the appropriate times in Time and Attendance for yesterday. Here is the SQL
UPDATE [Daily Log] INNER JOIN [Time And Attendance] ON [Daily Log].BADGE_TXT = [Time And Attendance].EMPLOYEE SET [Daily Log].[SCH IN] = CDate([Time And Attendance]![DATE_IN] & " " & [Time And Attendance]![TIME_IN]), [Daily Log].[SCH OUT] = CDate([Time And Attendance]![DATE_OUT] & " " & [Time And Attendance]![TIME_OUT]), [Daily Log].TA_Flag = "TA"
WHERE ((([Time And Attendance].DATE_IN)=Date()-1));
I think the cause might be the fact that Time and Attendance is actually a union of 2 views (non-updateable) from my server. I am unioning Current T&A with the history to get a complete collection of data to run this against. Anyone thing I might be on the right track with that being the problem? and if so, anyone have any good ideas to get around it?
-Keith