420 likes | 573 Views
Access 2007. Review. Topics. Advantages of Access Database Objects Tables Queries Forms Reports. Advantages of Access. Minimizes duplicate data, increasing accuracy and consistency Data entry is faster and easier
E N D
Access 2007 Review
Topics • Advantages of Access • Database Objects • Tables • Queries • Forms • Reports
Advantages of Access • Minimizes duplicate data, increasing accuracy and consistency • Data entry is faster and easier • Provides tools that allow sorting, grouping, analyzing and reporting data in many different ways • Data is more secure • Data can be shared and edited by several users simultaneously
Editing Data • Access automatically saves new data and changes to existing data as soon as you move to another record OR close the datasheet • The edit record symbol (looks like a pencil) appears in the record selector box when you are editing a record
Database • Create a new database using an Access database template or open a blank database • Database contains objects such as tables, data, queries, forms and reports. • Navigation Pane: Allows you to move between objects • A table stores all of the data
Database Backups • Need to use the Backup command, because the Save As only saves a copy of the selected database object. • Click on Office Button, Select:Manage > Back Up Database > (select location and enter new name).
Creating a Table • Start by using an Access table template or by creating a table from scratch • 3 essential tasks in creating a table: * Naming the table * Naming the fields * Selecting data type for each field (e.g., numbers, text, dates)
Primary Key Fields • Primary key field: Contains data that uniquely identifies each record; no 2 records can have the same entry in this field • Primary key field relates one table to another in a one-to-many relationship; one record in the 1st table is related to many records in the 2nd table
Field Properties • Properties = characteristics of a field • 2 properties required for every field: Field Name and Data Type • You can add other properties, such as Field Size, Format and Caption • More properties means more restrictions which then provides more accurate data
One-to-Many Relationships • The primary key field is in the table on the “one” side of the relationship • A foreign key field is a field in the “many” table • The one-to-many line shows the link between the primary key field of the table on the “one” side and the foreign key field of the table on the “many” side • The infinity symbol indicates the “many” side
Query • A query allows you to “ask” for only the information you want vs. navigating through all the fields and records of large tables • You can enter, edit and navigate data in a query datasheet just like a table datasheet • Query is considered a logical view of the data because the structure of the database is not change.
Creating a Query • One way to create a query is by using the Simple Query Wizard • The Wizard asks you questions to determine the information you want • Another way to create a query is by using Query Design View • Query Design View presents the fields you can choose from in Field Lists • You also use Query Design View to edit an existing query
Criteria Syntax • Quotation marks (“) around text criteria and pound signs (#) around date criteria are automatically added by Access • Criteria in Number, Currency, and Yes/No fields are not surrounded by any characters
Wildcards • Used to search for a pattern; represents any character • Entered as criteria • ? Used to search for a single character • * Used to search for any number of characters
Searching for Blank Fields • 2 common criteria are Is Null and Is Not Null • Is Null – Finds all records where no entry has been made • Is Not Null – Finds all records where any entry has been made (even if zero)
Applying AND Criteria • AND criteria means all criteria must be true for the record to be selected • Created by entering 2 or more criteria in the same Criteria row of the query design grid
Applying OR Criteria • OR criteria means any one criterion must be true for the record to be selected • Created by entering 2 or more criteria on different Criteria rows of the query design grid • Also created by entering 2 or more criteria in the same Criteria cell separated by OR
Sorting and Finding Data • Works the same way for queries as it does for tables • Data can be sorted by clicking the list arrow on a datasheet’s column heading, then click a sorting option • Data can also be sorted by using the Sort and Find buttons on the Home tab
Filtering Data • Filters provide a temporary way to display a subset of records that match given criteria • Filters are not used to calculate sums, averages, counts, etc. • Filters are removed when the datasheet is closed • Filters can, however, be saved as queries
Form • A form enables you to arrange fields of a record in any layout you wish • You can enter, edit, delete and navigate data in forms just like query and table datasheets
Creating a Form • One way to create a form is by using the Form Wizard • The Wizard asks you questions to determine the information you want • Form Layout View allows some design changes to the form • You can add / delete fields • You can change formatting such as fonts and colors • Form Design View provides access to the detailed layout and structure of the form for custom design
Tab Stop and Tab Order • Focus: the current/active field on form • Tab Stop: determines whether the field accepts the focus and therefore determines where the focus moves as you press [Tab] • Tab Order: the order the focus moves as you press [Tab] • All text boxes and combo boxes have a tab stop and are included in the tab order
Report • The report feature helps you create a professional-looking, easy-to-read document that summarizes data • Reports are read-only objects • Report sections (header, detail, footer) determine where and when controls print in the report
Creating a Report • Report Wizard is one way to create a report • It is a tool that asks you questions to guide development of the report • Your responses determine record source, style and layout • The Wizard helps sort, group and analyze records • Report Design View is another way to create a report • It provides access to the detailed layout and structure of the form for custom design including the header, detail, footer sections
Using Report Sections • A section determines where and how often controls in that section print in the report • Grouping means to sort records in a specific order plus provide a header or footer section after each group
Adding Subtotals and Counts • Calculations are used to add subtotals and counts to a report • Expressions are needed to create a calculation • Functions are built-in Access formulas • Arguments are information needed by a function
Formatting a Report • Formatting can make a report look more professional and easier to read • Formatting includes: * Font style, size and color * Background colors * Line thickness and color * Alignment
Changing Page Layout • Altering the layout can make a report fit better on the page, making it easier to read • Page layout includes: * Orientation (portrait or landscape) * Margins • Remember to use Print Preview
Page Orientation • Portrait: • Landscape:
To Learn More… • Consider taking CIS117DM – Access