First, I know that this question has been asked on this forum already, but each previous question differs from my situation and the solutions don't work. My commas are all there and I'm using a very simple query. Moving right along:
I'm using a linked table in Access, which links to a SQL Server database. Everything works except this query. If I run the text directly in SQL Server, it runs fine. Therefore, the syntax of the query must be fine.
Here's what I'm running:
CurrentDb.Execute "Update dbo_TS_Activity Set [Remarks] = ''Updated Remarks'' Where [id] = 1124 AND [Emp_Name] = ''CONFUSED'' AND [Approved] = 0"
I get Run-time error '3075' Syntax error (missing operator) in query expression ''Updated Remarks''
What I've tried:
- Single quotes
- Double quotes
- Double single (two apostrophes) quotes
- No quotes
- Opening the linked table and manually editing it (it works)
- Crying (just kidding)
Updated Remarks
andCONFUSED
literal text, or are they variables you're trying to concatenate into the SQL? – Ken White