Musoke Herbert
New member
- Local time
- Today, 06:34
- Joined
- Sep 8, 2021
- Messages
- 3
Hello members am trying to Develop a public function , below but its failling to Work can u please hel
Public Function TotalPoints(StudentID As String, Class As String, Term As String, SchoolYear As Integer) As Integer
' Returns the total of points for a student in a given class in a term a year
TotalPoints = DSum("GP", "ALevelreportsQ", "StudentID = '" & StudentID & "' AND Class = '" & [Class] & "' AND Term ='" & [Term] & "' AND SchoolYear =" & [SchoolYear] & "")
End Function
Public Function TotalPoints(StudentID As String, Class As String, Term As String, SchoolYear As Integer) As Integer
' Returns the total of points for a student in a given class in a term a year
TotalPoints = DSum("GP", "ALevelreportsQ", "StudentID = '" & StudentID & "' AND Class = '" & [Class] & "' AND Term ='" & [Term] & "' AND SchoolYear =" & [SchoolYear] & "")
End Function