I am creating a program which allows a user to extract student grades and other data for the students enrolled in a specified course. At the moment, I am trying to construct the SQL access statement but there appears to be an error that I am havng trouble disecting.
Additionally, it is important to note that the data is coming from 2 tables.
This is what I have so far. I tried adding brakets around the inner join, excluding the order by statement, and using the table names explicitly with the select statement and whatnot. Nothing has worked yet.
SQL = "SELECT G.course, G.A1, G.studentID, S.FirstName, S.LastName " _
& "FROM grades G INNER JOIN students S ON G.studentID = S.studentID " _
& "WHERE G.course =" & courseCode & " " _
& "ORDER BY G.studentID"