|
hello everyone, i have a multiple choice exam program i am working on and have run into a (hopefully) easy problem.
here is my question: i have 4 radiobuttons (bound to an "answercode" field in access 0=a, 1=b, 2=c, and 3=d). the possible answers a through d are in labels (bound to their corresponding answers). i was thinking of using a Select Case method for this, and have a message box that would pop up stating if the chosen answer is correct or incorrect. i was imagining it to look something like this:
Select Case
Case rdb1.Checked
If column "answercode" = 0 Then AnswerCorrect = True And MsgBox("Correct")
Else AnswerCorrect = False And MsgBox("incorrect")
Case rdb2.Checked
If column "answercode" = 1 Then ... same as above and this continues through rdb3 and rdb4
i am not quite sure how to write this code exactly to perform these tasks (MessageBoxes). can anyone shed some light?
thank you in advance.......ryan |