Presentation is loading. Please wait.

Presentation is loading. Please wait.

ACCESS 3. OBJECTIVES Calculated fields in query design Total option in query design Creating Forms.

Similar presentations


Presentation on theme: "ACCESS 3. OBJECTIVES Calculated fields in query design Total option in query design Creating Forms."— Presentation transcript:

1 ACCESS 3

2 OBJECTIVES Calculated fields in query design Total option in query design Creating Forms

3 CALCULATIONS IN QUERY Queries can be built to perform a calculation as part of the query We often do this for things that we do not need to store and take up space with Expressions can be entered into the query design grid as if they were regular fields Done on Numeric data type fields

4 To perform a calculation in a query, you must add a calculated field to the query design. Make certain that you are following the rules of precedence ! Two options for entering expressions: –Enter the expression directly into the field text box –Enter the expression in the Expression Builder

5 CREATING A CALCULATED FIELD USING BUILDER  Remove the existing criteria  In design view, click in the place where you want calculated field.  Then click the magic wand “Builder” icon above.  The expression builder shows up…

6 THE EXPRESSION BUILDER…

7 REMEMBER THIS… Note: If you see > be sure to remove it ! ! ! Expand the width of the column if you see ####…

8 EXAMPLE In Design View of Query2 let us create a calculated field to show employment percent EmpRate\(EmpRate+UnEmpRate)

9 GET APPROPRIATE FIELDS IN TO BUILDER

10 FORMAT Format the calculated field as Fixed number with 4 decimal places Execute the query

11 SORT Sort GDP in ascending order

12 EXAMPLE 2 Download Baseball_Statistics file

13 QUERY Create a query to display League name and Team name

14 NOTICE REPETITIONS

15 GROUP BY USING TOTALS

16 SELECT THE APPROPRIATE GROUP BY OPTION Group by Leagues and number of teams

17 NOTICE THE QUERY RESULT

18 OTHER GROUP BY OPTIONS Average Sum Minimum Maximum

19 CREATE A FORM WITH SUBFORM The main form should display the name of each league and division in the Divisions table

20 SELECT FIELD FOR MAIN FORM

21 SELECT FIELDS FOR SUBFORM The subform should display the individual team names, the percent of games won, and whether they participated in a playoff game

22 NOTICE FROM WITH SUBFORM(S)

23 DATASHEET LAYOUT

24 TITLES Main form as League Results Subform as League Results Subform

25


Download ppt "ACCESS 3. OBJECTIVES Calculated fields in query design Total option in query design Creating Forms."

Similar presentations


Ads by Google