
Originally Posted by
June7
Don't enclose the aggregate values within quote marks to begin with and CInt should not be necessary. CInt should error if value has alpha characters, like "Missed Exam".
Switch() function is an option for nested IIf.
Aggregate ENG: Switch([MK ENG]<40,9, [MK ENG]<45,8, [MK ENG]<50,7, [MK ENG]<55,6, [MK ENG]<60,5, [MK ENG]<65,4, [MK ENG]<70,3, [MK ENG]<75,2, [MK ENG]<=100,1)
Arithmetic with Null returns Null. If any of the values are Null there will not be a sum. Handle Null.
Total Aggregates: Nz([Aggregate ENG],0)+Nz([Aggregate MATH],0)+Nz([Aggregate SCIE],0)