tarek_ta2ta2
Tarek
- Local time
- Yesterday, 17:54
- Joined
- Jun 8, 2008
- Messages
- 47
I have a section on a form that has 4 questions, numbered 1-4, with 4 option buttons per question. Each of the option buttons have the same response (bad, normal, good, excellent), and each answer is given a point value for each question.
bad give 1, normal give 2, good give 3, excellent give4
For instance, question 1 might ask "trip evaluation?" and if you answer bad you will get +1, normal will earn you +2, and so on.
I would like to total the points for all the four questions in visible textbox at the end of the 4 questions.
i use this code but it works for only one question can't calculate the total for the four questions
Private Sub test_Click()
Dim total As Integer
Dim QNUM As Integer
QNUM = QNUM + 1
total = 0
Select Case QNUM
Case 1
If bad1.Value = True Then total = total + 1
If normal1.Value = True Then total = total + 2
If good1.Value = True Then total = total + 3
If Excellent1 = True Then total = total + 4
MsgBox "your total is: " & total
End Select
End Sub
bad give 1, normal give 2, good give 3, excellent give4
For instance, question 1 might ask "trip evaluation?" and if you answer bad you will get +1, normal will earn you +2, and so on.
I would like to total the points for all the four questions in visible textbox at the end of the 4 questions.
i use this code but it works for only one question can't calculate the total for the four questions
Private Sub test_Click()
Dim total As Integer
Dim QNUM As Integer
QNUM = QNUM + 1
total = 0
Select Case QNUM
Case 1
If bad1.Value = True Then total = total + 1
If normal1.Value = True Then total = total + 2
If good1.Value = True Then total = total + 3
If Excellent1 = True Then total = total + 4
MsgBox "your total is: " & total
End Select
End Sub