S
Simone
I have two tables made from queries of summarized data. I am trying to update
one table with information from the other using the following sql:
UPDATE [Retention Superior Perf], [Superior Totals] SET [Retention Superior
Perf].CountOfEmpLastName = IIf([Latest Perf
Rating]="Total",[SumofCountofEmpLastName],IIf([Latest Perf Rating]="YTD
Leavers",[YTD Terms],IIf([Latest Perf
Rating]="YTD%",[YTD],[CountofEmpLastName])));
All my records update properly except the "YTD%" record. I keep getting a
error - "conversion fail/ Key violation/ lock violation/ validation role
violation", for the one record. Not quite sure how to resolve, but I assume
its because its an integer (.0155), while the other records that did update
are whole numbers. How can I fix to have this record updated in my query.
I have tried to update this one record by individually using:
UPDATE [Retention Superior Perf], [Superior Totals] SET [Retention Superior
Perf].CountOfEmpLastName = [YTD]
WHERE ((([Retention Superior Perf].[Latest Perf Rating])="YTD%"));
While I do not get an error message, it shows up as a zero but should be
..0155 as displayed in the table.
(FYI - no relationship in either table. I have also tried a left join in
first SQL, but all of the above records show up as null)
one table with information from the other using the following sql:
UPDATE [Retention Superior Perf], [Superior Totals] SET [Retention Superior
Perf].CountOfEmpLastName = IIf([Latest Perf
Rating]="Total",[SumofCountofEmpLastName],IIf([Latest Perf Rating]="YTD
Leavers",[YTD Terms],IIf([Latest Perf
Rating]="YTD%",[YTD],[CountofEmpLastName])));
All my records update properly except the "YTD%" record. I keep getting a
error - "conversion fail/ Key violation/ lock violation/ validation role
violation", for the one record. Not quite sure how to resolve, but I assume
its because its an integer (.0155), while the other records that did update
are whole numbers. How can I fix to have this record updated in my query.
I have tried to update this one record by individually using:
UPDATE [Retention Superior Perf], [Superior Totals] SET [Retention Superior
Perf].CountOfEmpLastName = [YTD]
WHERE ((([Retention Superior Perf].[Latest Perf Rating])="YTD%"));
While I do not get an error message, it shows up as a zero but should be
..0155 as displayed in the table.
(FYI - no relationship in either table. I have also tried a left join in
first SQL, but all of the above records show up as null)