FuzMic
DataBase Tinker
- Local time
- Today, 23:45
- Joined
- Sep 13, 2006
- Messages
- 719
Hi
I have a select query with Sum of a numeric field, let say we name Query as QTot:
SELECT ID1, Sum(Num) AS SNum FROM TB1 GROUP BY ID;
Then i wanted to use these Sum ie SNum to update a table Tb2, i use
UPDATE Tb2 INNER JOIN ON TB1.ID1 = TB2.ID2 SET Tb2.Val = [QTot].[SNum] WHERE [Tb2].[Flag]="AFlg";
It cannot work, it says that it is not an updatable Query; how?
I have a select query with Sum of a numeric field, let say we name Query as QTot:
SELECT ID1, Sum(Num) AS SNum FROM TB1 GROUP BY ID;
Then i wanted to use these Sum ie SNum to update a table Tb2, i use
UPDATE Tb2 INNER JOIN ON TB1.ID1 = TB2.ID2 SET Tb2.Val = [QTot].[SNum] WHERE [Tb2].[Flag]="AFlg";
It cannot work, it says that it is not an updatable Query; how?