Access Maintaining and Querying a Database
Objective: Find, modify, and delete records in a table Learn how to use the Query window in Design view Create, run, and save queries Update data using a query datasheet Create a query based on multiple tables Sort data in a query Filter data in a query
Objective: Specify an exact match condition in a query Change the font size and alternate row color in a datasheet Use a comparison operator in a query to match a range of values Use the And and Or logical operators in queries Create and format a calculated field in a query Perform calculations in a query using aggregate functions and record group calculations Change the display of database objects in the Navigation Pane
Query Window in Design View
Creating a Simple Query A query is a question you ask about the data stored in a database The QBE (Query By Example) window allows you to select records and fields quickly (and put in criteria, etc).
Introduction to Queries Click the Create tab on the Ribbon In the Other group on the Create tab, click the Query Design button
Introduction to Queries
Specifying an Exact Match With an exact match, the value in the specified field must match the condition exactly in order for the record to be included in the query results
Using a Comparison Operator to Match a Range of Values
Creating a Simple Form A form is an object you use to enter, edit, and view records in a database; usually one record at a time You can design your own forms, use the Form Wizard, or use the Form tool to create a simple form quickly and easily
Creating a Simple Form
Creating a Form Using the Form Wizard The Form Wizard allows you to choose some or all of the fields in the selected table or query, choose fields from other tables and queries, and display the selected fields in any order on the form Click the Create tab in the Ribbon In the Forms group, click the Form Wizard button
Creating a Form Using the Form Wizard
Creating a Form Using the Form Wizard
Previewing and Printing Selected Form Records Access prints as many form records as can fit on a printed page
Creating a Simple Report A report is a formatted printout (or screen display) of the contents of one or more tables in a database The Report tool places all the fields from a selected table or query
Creating a Simple Report
Creating a Simple Report
Report in Print Preview
Creating a Report Using the Report Wizard The Report Wizard asks you a series of questions and then creates a report based on your answers A report is a formatted printout of the contents of one or more tables or queries in a database You can change the report’s design after you create it
Creating a Report Using the Report Wizard Click the Create tab on the Ribbon In the Reports group on the Create tab, click the Report Wizard button
Creating a Report Using the Report Wizard
Creating a Report Using the Report Wizard
Creating a Report Using the Report Wizard
Using Conditional Formatting in a Report Conditional formatting in a report (or form) is special formatting applied to certain field values depending on one or more conditions Click the appropriate field value In the Control Formatting group on the Format tab, click the Conditional Formatting button Click the New Rule button
Using Conditional Formatting in a Report
Using Conditional Formatting in a Report
Working with the Navigation Pane The Navigation Pane is the main area for working with the objects in a database The Navigation Pane divides database objects into categories, and each category contains groups Object Type All Access Objects