robjd
01-21-2009, 07:54 AM
Hi
I am writing a small DB to record and report class information for a school.
I have a table called Student_info. This table contains all of the students information (one record per student).
Included on this tables is a series of module scores. All i want to do is average those scores when the last one has been entered.
I have created a form called Student_info1, this contains all of the entry text boxes bound to the fields in the table. The average field is not on the form.
To make this calculation easier I am happy to make it happen as an "On enter" event on the last text box of scores.
Also I am happy to "fudge" the average by using something like:
ave = (sc1 + sc2 + sc3 + sc4 + sc5 + sc6)/6
I just don't know know how to call the right fields and output to the average field on the table. The average field is called Average_1st_term; the table is called Student_info ...
Help would be most appreciated! ;)
Rob :confused:
I am writing a small DB to record and report class information for a school.
I have a table called Student_info. This table contains all of the students information (one record per student).
Included on this tables is a series of module scores. All i want to do is average those scores when the last one has been entered.
I have created a form called Student_info1, this contains all of the entry text boxes bound to the fields in the table. The average field is not on the form.
To make this calculation easier I am happy to make it happen as an "On enter" event on the last text box of scores.
Also I am happy to "fudge" the average by using something like:
ave = (sc1 + sc2 + sc3 + sc4 + sc5 + sc6)/6
I just don't know know how to call the right fields and output to the average field on the table. The average field is called Average_1st_term; the table is called Student_info ...
Help would be most appreciated! ;)
Rob :confused: