I have testing/quiz data and I’m trying to do a listing for each test-taker. So I have:
QuestionText
Answer1
Answer2
Answer3
Answer4
I also have two fields… one is ‘RightWrong’ (which has a 1 if they got it right and a 0 if they got it wrong), and the other is ‘Response’ (which is the answer a test-taker gave that will match Answer1, 2, 3, or 4).
What I want to do is have a field after Answer1 (or highlight Answer1) that goes something like this:
IF [RESPONSE]=[ANSWER1] AND [RIGHTWRONG]="1" THEN (somehow show it as correct)
After Answer2:
IF [RESPONSE]=[ANSWER2] AND [RIGHTWRONG]="1" THEN (somehow show THIS as correct)
etc.
Can this be done with Conditional Formatting? If not, what kind of code do I need?
Right-click the TextBox and choose “Conditional Formatting…”. Then enter something like this
If you have only one textbox that is repeated for each record, then the “
[RESPONSE]=[ANSWER1] And” part is not necessary of cause. Enter only[RIGHTWRONG]="1"as expression.If you want to format a textbox that is bound to the field
RightWrongyou can simplify it further like thisAnd if the
RightWrongfield is typed as Integer or Long drop the double quotes around1.