Thread: Pop-up message
View Single Post
  #2  
Old April 28th, 2008, 04:45 AM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default Pop-up message

On Sun, 27 Apr 2008 18:35:00 -0700, SJ wrote:

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
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail