pcc
Well-known Member
- Joined
- Jan 21, 2003
- Messages
- 1,366
- Office Version
- 2021
- Platform
- Windows
I am very new to Access and SQL. I have this code in a query, but when I try to save the query, I get a 'syntax error (missing operator)' message.
All of the field and table names are OK, so what have I missed?
All of the field and table names are OK, so what have I missed?
Code:
SELECT s.PrjDef, s.PrjType, s.ActType, s.CCntr, s.Hours, s.yr, s.ap, s.inorsub =
CASE
WHEN s.inorsub = 'I' then 'Inhouse'
ELSE 'Subcon'
END
FROM sapsummary AS s WHERE 1=1 ;