Pop-up message

  • Thread starter Thread starter SJ
  • Start date Start date
S

SJ

I am trying to design a questionnaire with Yes/No as answers (the answer
choices being radio buttons). If the wrong answer is selected, I want a
pop-up box come up with the explanation as to why the answer is wrong. If the
answer is correct, need to proceed to the next question.
Please help. THanks,
 
I am trying to design a questionnaire with Yes/No as answers (the answer
choices being radio buttons). If the wrong answer is selected, I want a
pop-up box come up with the explanation as to why the answer is wrong. If the
answer is correct, need to proceed to the next question.
Please help. THanks,

The radio buttons ar in an Option Group?
Is so, the option group gets it's value from the value of the selected
radio button.
So, if button #3 is the correct answer, code the OptionGroup's
AfterUpdate event:

If Me.OptionGroup = 3 Then
Else
MsgBox "Nope! Button 3 is the correct answer because ... etc."
End if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top