I have a series of 5 boolean controls where any one of them being true will cause text in a control to change.
I can't get the code to work without the first criteria being true.
I have tried all manner of variations without success.
Do I need to use a single sql statement for each boolean, or should I write a convoluted function?
This is my last failed attempt.
if I remove the "or" immediately after the WHERE, I only get a result when "spellmain" is true.
Leaving the "or" in results in an error, basically indicating it doesn't like the "or".
I can't get the code to work without the first criteria being true.
I have tried all manner of variations without success.
Do I need to use a single sql statement for each boolean, or should I write a convoluted function?
This is my last failed attempt.
Code:
sQry = "UPDATE (Discrepancies as A ) " & _
"SET A.Notes = 'Spelling' " & _
"WHERE OR A.SpellMain = True " & _
"OR A.SpellRaw = True " & _
"OR A.SpellSpec = True " & _
"OR A.SpellG = True;"
CurrentDb.Execute sQry, dbFailOnError
if I remove the "or" immediately after the WHERE, I only get a result when "spellmain" is true.
Leaving the "or" in results in an error, basically indicating it doesn't like the "or".