Hey Guys...
I'm having a bit of a problem.
I'm designing an exam system for a college using visual studio 2010, my code is written in .aspx and my database is access 2010.
Basically I have a table called Assignment_Result,
here I store the students unique id, the modules the students is enrolled in, the course he/she is enrolled in, the academic year that the course is happening in, an assignment ID (where duplicates are allowed, as more than one student may be taking a module) and a grade assigned to a module assignment.
Then I have a query with three field (student ID, student GPA and Overall Result) The query calculates the students average grade for all his / her modules where the student ID is the same, but in that query I want the the field OverallResult to update to some thing like '1.1H' WHERE (GPA >= 70) Is there a way of doing this from Access or will I have to do this from the code? I have tried both ways, I simply can't figure out how to do it in Access and when I try update OverallResult in the code it says some thing like Can't update field, but My syntax is correct.
I'm wondering is the reason it isn't working is because Access won't allow me to run an update statement while a calculation (to get the students average result for all modules) is running.
Can anyone help me out? Offer me any solution?
*All help appreciated
I'm having a bit of a problem.
I'm designing an exam system for a college using visual studio 2010, my code is written in .aspx and my database is access 2010.
Basically I have a table called Assignment_Result,
here I store the students unique id, the modules the students is enrolled in, the course he/she is enrolled in, the academic year that the course is happening in, an assignment ID (where duplicates are allowed, as more than one student may be taking a module) and a grade assigned to a module assignment.
Then I have a query with three field (student ID, student GPA and Overall Result) The query calculates the students average grade for all his / her modules where the student ID is the same, but in that query I want the the field OverallResult to update to some thing like '1.1H' WHERE (GPA >= 70) Is there a way of doing this from Access or will I have to do this from the code? I have tried both ways, I simply can't figure out how to do it in Access and when I try update OverallResult in the code it says some thing like Can't update field, but My syntax is correct.
I'm wondering is the reason it isn't working is because Access won't allow me to run an update statement while a calculation (to get the students average result for all modules) is running.
Can anyone help me out? Offer me any solution?
*All help appreciated