raziel3
Registered User.
- Local time
- Today, 09:30
- Joined
- Oct 5, 2017
- Messages
- 316
I was reading this thread
and was wondering how to do an UPSERT using a query (not a table) as the source. I am trying the method described here and I am getting a "Operation must use an updateable query" error
AVGITEMCOST is the source query.
Append if rows do not exists else update if exists
Ok Guys i have one more question. I would like to create new recordset from t_AnimalInput (UPSERT table but with condition). So in one sql to do: 1. Check if Index equals 1 or 2 and take only these rows to create upsert query 2. Check if rows exist in t_AnimalSource and append if not 3. If...
www.access-programmers.co.uk
and was wondering how to do an UPSERT using a query (not a table) as the source. I am trying the method described here and I am getting a "Operation must use an updateable query" error
Code:
UPDATE AVGITEMCOST LEFT JOIN tblITEMTEST ON AVGITEMCOST.PIN = tblITEMTEST.PRICEID
SET tblITEMTEST.PRICEID = [AVGITEMCOST].[PIN];
AVGITEMCOST is the source query.