When I make a query in ms access in sql view using this code:
Data of the table may be updated by its datasheet view or a form based on it. However when I use a query:
Data can not be updated.
Please what is the reason behind it and any alternate for it please?
Moreover when I create a report based on the 2nd query, multilevel grouping fails. Any help will be appreciated.
Another issue is: This query results in ranks as:
And the required ranking is as:
I shall be very thankfull for any solution.
Code:
SELECT * FROM StudentsExams;
Code:
SELECT (SELECT Count(*) FROM StudentsExams As X WHERE X.classid = StudentsExams.classid and x.PaperID = StudentsExams.PaperID And X.Result > StudentsExams.Result)+1 AS Ranks, * FROM StudentsExams;
Please what is the reason behind it and any alternate for it please?
Moreover when I create a report based on the 2nd query, multilevel grouping fails. Any help will be appreciated.
Another issue is: This query results in ranks as:
Code:
StudentID ClassID PaperID Result Rank 1 1 1 10 1 2 1 1 12 2 3 1 1 12 2 4 1 1 13 4
Code:
StudentID ClassID PaperID Result Rank 1 1 1 10 1 2 1 1 12 2 3 1 1 12 2 4 1 1 13 3
Comment