Hi al,
Please can someone assist with the code to update an average into a table.
I have a table - tblMark
Fields are mark_id (PK)
test_id
mark
testAvg
What I need to do is when I click a button - the averages are calculated - based on test_id
So My data looks something like this
Mark_Id 1 test1 Mark 5 testAvg 6
Mark_Id 2 test1 Mark 6 testAvg 6
Mark_Id 3 test1 Mark 7 testAvg 6
Mark_Id 4 test2 Mark 3 testAvg 2.67
Mark_Id 5 test2 Mark 3 testAvg 2.67
Mark_Id 6 test2 Mark 2 testAvg 2.67
I would like the code to calculate testAvg and then populate my table with this information
I have tired a variety of queries but cant get it to update and calculate average at the same time.
Any assistance would be appreciated.
Thank you
Please can someone assist with the code to update an average into a table.
I have a table - tblMark
Fields are mark_id (PK)
test_id
mark
testAvg
What I need to do is when I click a button - the averages are calculated - based on test_id
So My data looks something like this
Mark_Id 1 test1 Mark 5 testAvg 6
Mark_Id 2 test1 Mark 6 testAvg 6
Mark_Id 3 test1 Mark 7 testAvg 6
Mark_Id 4 test2 Mark 3 testAvg 2.67
Mark_Id 5 test2 Mark 3 testAvg 2.67
Mark_Id 6 test2 Mark 2 testAvg 2.67
I would like the code to calculate testAvg and then populate my table with this information
I have tired a variety of queries but cant get it to update and calculate average at the same time.
Any assistance would be appreciated.
Thank you