Avatar of Jilliax33
Jilliax33
 asked on

How do I perform an update statement with an inner join in an MS Access query

I am trying to perform an update statement in Microsoft Access 2010. A seemingly simple task is racking my brain.

-I have 1 table: ResultsTable.
-I have 1 query: QueryMinPostingDate
-I am trying to update the table:
ResultsTable.MinOfPostingDate
to
 QueryMinPostingDate.MinOfPostingDate



Here is Attempt 1:
UPDATE
      [ResultsTable]
SET
      [ResultsTable].[MinOfPosting_Date] =[QueryMinPostingDate].[MinOfPosting_Date]
FROM [ResultsTable]
INNER JOIN  [QueryMinPostingDate]
            ON [ResultsTable].[EncounterID_UniqueID_Internal] = [QueryMinPostingDate].[EncounterID_UniqueID_Internal]

Result:
I receive the error
"Syntax Error (missing operator) in query expression..."


Here is Attempt 2:
UPDATE ResultsTable
INNER JOIN QueryMinPostingDate
ON ResultsTable.EncounterID_UniqueID_Internal = QueryMinPostingDate.EncounterID_UniqueID_Internal
SET ResultsTable.MinOfPosting_Date = [QueryMinPostingDate].[MinOfPosting_Date]

Result:
I receive the error
"Operation must use an Updateable Query"

Any help would be greatly appreciated!
Microsoft Access

Avatar of undefined
Last Comment
Jilliax33

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rey Obrero (Capricorn1)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jilliax33

ASKER
Yep, that worked.
Oh what fun with MS Access!!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23