Hello everyone
I'm looking for a query that allows me to retrieve all the pupils who did not have marks in a given exam. (let's say they were absent) and display them on a listview.
I used this query but it did not give any results.
Now with this query I always get
eventhough some students do not have exam marks
thank you
I'm looking for a query that allows me to retrieve all the pupils who did not have marks in a given exam. (let's say they were absent) and display them on a listview.
I used this query but it did not give any results.
Code:
RS.Open "select from Student_Table inner join Grades_Table on Student_Table.Id = Grades_Table.PID where exam ='""'", DB, adOpenStatic, adLockOptimistic
If RS.RecordCount = 0 Then
MsgBox " All the students have marks"
else.......
Code:
MsgBox " All the students have marks"
thank you