!!
i was trying to create a simple grading system but my project doesnt work it always shows the last if statement and ignore the other statement...please help
here's my code...can someone please tell me what's wrong coz i dont know how to use if/elseif/else statement...
newbie here...please help
Private Sub Command1_Click()
Text6.Text = Val(Text2.Text) * 0.1
Text7.Text = Val(Text3.Text) * 0.2
Text8.Text = Val(Text4.Text) * 0.3
Text9.Text = Val(Text5.Text) * 0.4
Text10.Text = Val(Text6.Text) + Val(Text7.Text) + Val(Text8.Text) + Val(Text9.Text)
If Val(Text10.Text) <= 100 Or Val(Text10.Text) >= 97 Then
Text11.Text = 1
End If
If Val(Text10.Text) <= 96 Or Val(Text10.Text) >= 91 Then
Text11.Text = 1.25
End If
If Val(Text10.Text) <= 90 Or Val(Text10.Text) >= 85 Then
Text11.Text = 1.5
End If
If Val(Text10.Text) <= 84 Or Val(Text10.Text) >= 79 Then
Text11.Text = 1.75
End If
If Val(Text10.Text) <= 78 Or Val(Text10.Text) >= 73 Then
Text11.Text = 2
End If
If Val(Text10.Text) <= 72 Or Val(Text10.Text) >= 67 Then
Text11.Text = 2.25
End If
If Val(Text10.Text) <= 66 Or Val(Text10.Text) >= 61 Then
Text11.Text = 2.5
End If
If Val(Text10.Text) <= 60 Or Val(Text10.Text) >= 55 Then
Text11.Text = 2.75
End If
If Val(Text10.Text) <= 54 Or Val(Text10.Text) >= 50 Then
Text11.Text = 3
End If
If Val(Text10.Text) <= 49 Or Val(Text10.Text) >= 25 Then
Text11.Text = 4
End If
If Val(Text10.Text) <= 24 Or Val(Text10.Text) >= 0 Then
Text11.Text = 5
End If
End Sub