Considering that Grade.firstExam, Grade.secondExam, and Grade.finalExam are all TEXT and not numbers, i can\'t get the exact solution to convert null values
In your SQL try something like this:
SQLStatement &= " IIf(IsNull(Grade.firstExam),'0',Grade.firstExam) as 'firstExam', "
You are getting this message error probably because you are using the VB function from inside the SQL request:
mySQLRequest = "SELECT ..., NZ(yourNumber,0), ..."
the NZ function is not understood by the database engine
You should write down your request this way:
mySQLRequest = "SELECT ..., IIf([myField] Is Null,0,[myField]) as myField, ..."