R
Richard
I am trying to run the following update statement on an Access 2000 database
table:
UPDATE CL
SET SofsbypandR = xx.mysum
FROM CLIENT CL
inner join (SELECT Pos, CityPair, sum(sumoffares) as mySum FROM Client Group
By Pos, CityPair) xx
ON CL.Pos = xx.Pos
AND CL.CityPair = xx.CityPair
I get the following error:
Syntax error (missing operator) in query expression 'xx.mysum
FROM CLIENT CL
inner join (SELECT Pos, CityPair, sum(sumoffares) as mySum FROM Client Group
By Pos, CityPair) xx
ON CL.Pos = xx.Pos
AND CL.CityPair = xx.CityPair'.
This update statement works in SQL Server 2000, but not in access.
Any ideas what I am doing wrong?
table:
UPDATE CL
SET SofsbypandR = xx.mysum
FROM CLIENT CL
inner join (SELECT Pos, CityPair, sum(sumoffares) as mySum FROM Client Group
By Pos, CityPair) xx
ON CL.Pos = xx.Pos
AND CL.CityPair = xx.CityPair
I get the following error:
Syntax error (missing operator) in query expression 'xx.mysum
FROM CLIENT CL
inner join (SELECT Pos, CityPair, sum(sumoffares) as mySum FROM Client Group
By Pos, CityPair) xx
ON CL.Pos = xx.Pos
AND CL.CityPair = xx.CityPair'.
This update statement works in SQL Server 2000, but not in access.
Any ideas what I am doing wrong?