This appears to be a fairly common problem in Access, but after researching multiple threads and trying all types of variations, I still can't find a solution for my problem.
Here is a simple Select query that runs just fine which pulls data from an Access table and a linked Oracle table:
SELECT a.WELL_UWI, b.MAIN_FORM
FROM (SELECT WELL_UWI, MAIN_FORM
FROM tmp_form) AS b
INNER JOIN eauser_nfx_hz_well_summary AS a
ON b.WELL_UWI = a.WELL_UWI;
I modified it to be an update query to update the linked Oracle table from data in the Access table as follows:
UPDATE a
SET a.MAIN_HZ_FM = b.MAIN_FORM
FROM (SELECT WELL_UWI, MAIN_FORM
FROM tmp_form) AS b
INNER JOIN eauser_nfx_hz_well_summary AS a
ON b.WELL_UWI = a.WELL_UWI;
I end up with this message:
Syntax error (missing operator) in query expression 'b.MAIN_FORM FROM (SELECT WELL_UWI, MAIN_FORM FROM tmp_form) AS b INNER JOIN eauser_nfx_hz_well_summary AS a ON b.WELL_UWI = a.WELL_UWI
Any idea what I'm missing?
Thanks!