H
hermie
I created a module and now it is working not good and not know what causes
the problem
the module =
Public Function caltarea(Pertar As String) As String
Select Case Pertar
Case 90# To 100#
caltarea = "A"
Case 80# To 89#
caltarea = "B"
Case 70# To 79#
caltarea = "C"
Case 60# To 69#
caltarea = "D"
Case 0# To 59#
caltarea = "F"
End Select
End Function
The result in the query is
valor puntos Percent Nota
24 24 100.00 F
22 24 91.67
26 29 89.66
32 36 88.89 B
19 24 79.17
17 24 70.83 C
25 36 69.44
20 29 68.97 D
21 36 58.33 F
7 24 29.17 F
2 24 8.33
1 36 2.78 F
1 36 2.78 F
0 36 0.00 F
#Error
Why have percent 100.00 a F it should be an A
and 8.33 is blank should be an F and for 69.44 shoul be a D
Any help is welcome
the problem
the module =
Public Function caltarea(Pertar As String) As String
Select Case Pertar
Case 90# To 100#
caltarea = "A"
Case 80# To 89#
caltarea = "B"
Case 70# To 79#
caltarea = "C"
Case 60# To 69#
caltarea = "D"
Case 0# To 59#
caltarea = "F"
End Select
End Function
The result in the query is
valor puntos Percent Nota
24 24 100.00 F
22 24 91.67
26 29 89.66
32 36 88.89 B
19 24 79.17
17 24 70.83 C
25 36 69.44
20 29 68.97 D
21 36 58.33 F
7 24 29.17 F
2 24 8.33
1 36 2.78 F
1 36 2.78 F
0 36 0.00 F
#Error
Why have percent 100.00 a F it should be an A
and 8.33 is blank should be an F and for 69.44 shoul be a D
Any help is welcome