Dim query As String =$"
SELECT attendance.groupName, attendance.studentName, studenttotalattendance.attendCount, studenttotalscore.scoreCount
FROM attendance
JOIN studenttotalattendance
ON attendance.studentID = studenttotalattendance.studentID
JOIN studenttotalscore
ON attendance.studentID = studenttotalscore.studentID
WHERE studenttotalattendance.classPeriod = ? AND studenttotalattendance.classYear= ?,Array As String(period,AcYear))
"$
rs = Starter.sql.ExecQuery(query)