I get this error:
Run·time error '3075':
Erro de sintaxe (operador em falta) na expressão de consulta 'CASE
WHEN FIELD1 = 'VALUE' THEN 1 ELSE 0 END',
When creating a sql pass-throuth query with vba, when using:
"CASE WHEN FIELD1 = 'VALUE' THEN 1 ELSE 0 END" in the middle of the string destined to write to the query.
If that string is pasted inside the query, it works.
Any help will be welcome
thank you