Hi
Find attacment of the CASE Statement on the attached database in Access 2003. Name of the database is Kent.
I have typed the code below in the StudentResult text box but it is not working. Please check out the attachment and help
Private Sub StudentResult_afterupdate ()
Dim StudentMark As Integer
Dim StudentResult As String
Select Case StudentMark.value
Case Is > 50
StudentResult = "Fail"
Case 51 To 60
StudentResult = "Pass"
Case 61 To 70
StudentResult = "Credit"
Case 71 To 80
StudentResult = "Merit"
Case 81 To 90
StudentResult = "Distinction"
End Select
End Sub
Find attacment of the CASE Statement on the attached database in Access 2003. Name of the database is Kent.
I have typed the code below in the StudentResult text box but it is not working. Please check out the attachment and help
Private Sub StudentResult_afterupdate ()
Dim StudentMark As Integer
Dim StudentResult As String
Select Case StudentMark.value
Case Is > 50
StudentResult = "Fail"
Case 51 To 60
StudentResult = "Pass"
Case 61 To 70
StudentResult = "Credit"
Case 71 To 80
StudentResult = "Merit"
Case 81 To 90
StudentResult = "Distinction"
End Select
End Sub