I am having problems conditionally formatting the incorrect answers to a survey and could use some help.
There are 25 questions and 25 corresponding correct answers that can change over time. Some answers are currently “True” or “False”, some are multiple choice, and other have a range of responses from 1 to 5.
The acceptable answers to those questions that have a range of responses from 1 -5 can either be a 1 or a 2, or a 4 or a 5, depending on how the question is worded. The table that stores the correct answers allows for multiple values (e.g, “4,5” is stored in that cell.)
I designed a form that displays the correct answers based on the selected time period. “frmCorrectAnswers”
Here is the problem:
Question #9 (Q9) is a True or False and the answer (A9) is True. My conditional formatting rule says
Field Value is not equal to Forms![frmCorrectAnswers]![A9] then display the answer in red. This works fine, the answer turns red when it is incorrect.
Question #11 (Q11) has a range of responses from 1 to 5, with the acceptable answers being a 4 or a 5. The table with the correct answers, and hence also frmCorrectAnswers, shows a value of “4,5” for the answer (A11). (without the quotes).
If I hard code the conditional formatting rule as follows:
Expression is Eval ([Q11] Not In (4,5) ) then display the answer in red. This also works fine, the answer turns red when it is incorrect.
However, if I write the conditional formatting rule as follows:
Expression is Eval ([Q11] Not In (Forms![ frmCorrectAnswers]![A11] )) then display the answer in red. This DOES NOT work. I do not get any error messages but the text remains black even when the answer is incorrect.
The form is loaded and the reference to the answer in the form works just fine for question 9 above (Field Value is not equal to Forms![ frmCorrectAnswers]![A9] . And the Expression is Eval ([Q11] Not In (4,5) also works fine when the correct answers are hard coded. But when I try to combine the Expression is Eval ([Q11] option with a reference to thecorrect answer on the loaded form Not In (Forms![ frmCorrectAnswers]![A11], then it all falls apart. The color of the text for the answer does not change to red when it is the wrong answer.
Any suggestions would be greatly appreciated.
Thanks,
Dan