UPDATE query with multiple INNER JOINs (syntax error) (1 Viewer)

abcrf

New member
Local time
Today, 02:25
Joined
Dec 16, 2015
Messages
8
I'm trying to run an update query with multiple join statements in VBA, but I keep getting "missing operator" errors. Same happens when I try to run the SQL in query builder. The SQL is:

Code:
UPDATE TBL_DocReview_SingleStudy
INNER JOIN TBL_LOA
ON TBL_LOA.MemberName = TBL_DocReview_SingleStudy.Member
INNER JOIN TBL_STUDY
ON TBL_STUDY.StudyName = TBL_DocReview_SingleStudy.Study
SET TBL_DocReview_SingleStudy.DateLOA2 = TBL_LOA.Status
WHERE TBL_STUDY.CDB = 'B'
Can anyone see what I'm doing wrong?
 

James Deckert

Continuing to Learn
Local time
Today, 04:25
Joined
Oct 6, 2005
Messages
189
Try eliminating part of it by running
UPDATE TBL_DocReview_SingleStudy
INNER JOIN TBL_LOA
ON TBL_LOA.MemberName = TBL_DocReview_SingleStudy.Member
SET TBL_DocReview_SingleStudy.DateLOA2 = TBL_LOA.Status
in the query builder (after copying your db first - OF COURSE) and see if this query gives you the same problem.

Also try it as a SELECT query and see if it'll run.
 

Users who are viewing this thread

Top Bottom