Can someone help me with my code? It keeps showing Pass and Merit for every name and option button i select.
Option Explicit
Dim Average_Mark As Double
Private Sub CmdOK1_Click()
If FrmMark.OptModule1 = True Then
Range("Data!c26").Value = 5
End If
If FrmMark.OptModule2 = True Then
Range("Data!c26").Value = 9
End If
If FrmMark.OptModule3 = True Then
Range("Data!c26").Value = 13
End If
Average_Mark = Range("Data!c28").Value
If Average_Mark <= 40 Then
MsgBox "Fail"
End If
If Average_Mark > 40 < 55 Then
MsgBox "Pass"
End If
If Average_Mark >= 55 < 70 Then
MsgBox "Merit"
End If
If Average_Mark >= 70 Then
MsgBox "Distinction"
End If
End Sub
2007-12-12
03:21:05
·
5 answers
·
asked by
basics_87
1
in
Computers & Internet
➔ Programming & Design
Ok thanks guys i got that part to work but i still have one problem.
On the form i have a list of names, but the message keeps displaying the message for one name.
I want it so i can click on a name and it show the answers for the person.....
...If im getting too complicated dont worry. Thanks.
2007-12-12
04:06:38 ·
update #1