G
Guest
Hello,
I am trying to understand why Access cannot run this statement. I have a
SET statement with a Select Statement. Access keeps telling me that the
operation must be an updateable query. I know that there is nothing wrong
with the Update statement because I can replace the Select statement wtih
some static data and it works fine. The Select statement is coming from
another query, and I know it runs fine.
UPDATE TempHedgeDoc
INNER JOIN dbo_deals ON TempHedgeDoc.Quantum = dbo_deals.deal_no
SET TempHedgeDoc.firstNextText =
(SELECT Top 1 dbo_deals.deal_no FROM dbo_deals INNER JOIN TempHedgeDoc
ON (dbo_deals.ccy2 = TempHedgeDoc.ccy2) AND (dbo_deals.ccy =
TempHedgeDoc.ccy) AND (dbo_deals.mature_dt = TempHedgeDoc.mature_dt) WHERE
dbo_deals.trans_type="fx" GROUP By deal_no, dbo_deals.deal_dt ORDER BY
dbo_deals.deal_dt, dbo_deals.deal_no);
I am trying to understand why Access cannot run this statement. I have a
SET statement with a Select Statement. Access keeps telling me that the
operation must be an updateable query. I know that there is nothing wrong
with the Update statement because I can replace the Select statement wtih
some static data and it works fine. The Select statement is coming from
another query, and I know it runs fine.
UPDATE TempHedgeDoc
INNER JOIN dbo_deals ON TempHedgeDoc.Quantum = dbo_deals.deal_no
SET TempHedgeDoc.firstNextText =
(SELECT Top 1 dbo_deals.deal_no FROM dbo_deals INNER JOIN TempHedgeDoc
ON (dbo_deals.ccy2 = TempHedgeDoc.ccy2) AND (dbo_deals.ccy =
TempHedgeDoc.ccy) AND (dbo_deals.mature_dt = TempHedgeDoc.mature_dt) WHERE
dbo_deals.trans_type="fx" GROUP By deal_no, dbo_deals.deal_dt ORDER BY
dbo_deals.deal_dt, dbo_deals.deal_no);