Calculated Fields 1. Calculated fields in queries. 2. Calculated fields on forms. Why? – Because it’s unnecessary to hold all data in the base tables, especially when recalculations are often necessary. Therefore, perform calculation when accessing data.
Calculated fields in queries (producing many records per screen) Of the type: Module_total:[coursework]* [exam]* 0.25 Module_total is the field name into which the total will go at output time. The formula follows the colon.
Create table for student details plus marks Include “result” field for pass/fail to be added later Create query required fields to be displayed Add total field as a calculation
Run Query – Total produced for each student
Calculated fields on forms ( one record per screen) In the control source property: = [coursework]* [exam]* 0.25
Create form Add extra field to hold total Specify data source as calculation
Open form to display record