Presentation is loading. Please wait.

Presentation is loading. Please wait.

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,

Similar presentations


Presentation on theme: "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,"— Presentation transcript:

1 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.

2 Calculated fields in queries (producing many records per screen) Of the type: Module_total:[coursework]*0.75 + [exam]* 0.25 Module_total is the field name into which the total will go at output time. The formula follows the colon.

3 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

4 Run Query – Total produced for each student

5 Calculated fields on forms ( one record per screen) In the control source property: = [coursework]*0.75 + [exam]* 0.25

6 Create form Add extra field to hold total Specify data source as calculation

7 Open form to display record


Download ppt "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,"

Similar presentations


Ads by Google