Chapter 1 Databases and Database Objects: An Introduction Microsoft Access 2010 Chapter 1 Databases and Database Objects: An Introduction
Objectives Design a database to satisfy a collection of requirements Describe the features of the Access window Create a database Create tables in Datasheet and Design views Add records to a table Databases and Database Objects: An Introduction
Objectives Close a database Open a database Print the contents of a table Create and use a query Create and use a form Create and print custom reports Modify a report in Layout view Databases and Database Objects: An Introduction
Creating a folder Go to your home directory Create a subdirectory called Access Change to the Access folder and create another folder called Chapter1 You will save all your work to this directory. Also, all the files you will need are on \\ciscoserver\Public\Db Design SAVE FREQUENTLY!!! Just a warning! Databases and Database Objects: An Introduction
Project – Database Creation Databases and Database Objects: An Introduction
General Project Guidelines – pg. 5 Identify the tables Determine the primary keys Determine the additional fields Determine relationships between the tables Determine data types for the fields Identify and remove any unwanted redundancy Determine a storage location for the database Determine additional properties for fields Determine the best method for distributing the database objects Databases and Database Objects: An Introduction
Overview –pg. 6-7 Design database – maintains information on both clients and business analysts. Look at the data on pg. 6-7 Clients – address data & financial data Business analysts – address data, financial data Go thru pg. 8-12 Databases and Database Objects: An Introduction
Creating a Database Ensure the New tab is selected and that Blank database is selected in the New gallery Click the Browse button in the right pane of the New gallery to display the File New Database dialog box Type the desired file name (Camashaly Design) in the File New Database dialog box to change the file name. Do not press the ENTER key after typing the file name Navigate to the desired save location (H:\username\Access\Chapter1) Click the Create button in the right pane to create the database on the selected drive with the entered file name Databases and Database Objects: An Introduction
Creating a Database Databases and Database Objects: An Introduction
Datasheet view- table is presented in rows and columns, similar to a spreadsheet – used to add or update records Design View – used to create a table or modify the structure of a table Databases and Database Objects: An Introduction
Modifying the Primary Key - Do pages 17-20 then stop! Databases and Database Objects: An Introduction
Making structure changes to a table Undo – will undo last change You can delete a field, change the name of a field, insert a field or move a field… See instructions on pg. 20 Databases and Database Objects: An Introduction
Saving a Table Click the Save button on the Quick Access Toolbar to display the Save As dialog box Type Business Analyst Table Click the OK button (Save As dialog box) to save the table Databases and Database Objects: An Introduction
Viewing the Table in Design View Click the View button arrow to toggle between Design and Datasheet view. Databases and Database Objects: An Introduction
Closing the Table Click the Close button for the open table to close the table Databases and Database Objects: An Introduction
Adding Records to a Table Do pages 23-26 to populate and then close the table. Now Quit Access and restart it and open Your database! Databases and Database Objects: An Introduction
Resizing Columns in a Datasheet Do pages 28-30 Databases and Database Objects: An Introduction
Previewing and Printing the Contents of a Table Look at pg 31-32 to preview and print the table DO NOT ACTUALLY PRINT IT… just observe How! Databases and Database Objects: An Introduction
Creating a Table in Design View Now you are going to create the Client table by following the instructions on pg. 33-37 Pay attention to Table 1-5 on pg. 33 for the structure of this table. If you make a mistake… there are ways to correct it. Check out some of the ways on pg. 37 Databases and Database Objects: An Introduction
Importing an Excel Worksheet It is VITAL that the structure is correct before you do this! Once the Client table is structurally sound…you can import the data from Excel..pg 39-42 Show me these tables once all of this is complete Databases and Database Objects: An Introduction
Using the Simple Query Wizard to Create a Query Do pages 43-45 to create a sample query. Databases and Database Objects: An Introduction
Using Queries – pg. 45 See the notes on this page… we will discuss. Databases and Database Objects: An Introduction
Using a Criterion in a Query Do pages 46-47. Databases and Database Objects: An Introduction
Do pages 48-50 to create a form for your database. Creating a Form Do pages 48-50 to create a form for your database. Databases and Database Objects: An Introduction
Creating a Report Look at the example on pg 51. Now, do page 52-57 Databases and Database Objects: An Introduction
Changing Database Properties These properties are known as metadata. Many of these are updated automatically. Some you have to do manually. Do pgs. 59-60 Databases and Database Objects: An Introduction
Changing Database Properties Databases and Database Objects: An Introduction
Backing Up a Database Pg. 61 Walk thru this Databases and Database Objects: An Introduction
Compacting and Repairing a Database Pg. 61 instructions Databases and Database Objects: An Introduction
Additional Operations – pg. 62 Opening another database Closing a database without exiting Access Saving a database with another name Deleting a table or other object in the database Renaming an object in the database Databases and Database Objects: An Introduction
Now – what shall we do? Homework Labs Most of your homework will be done online Go to scsite.com/ac2010 From there choose to do the Practice Test…you can take it as many times as you want… Print out the results and bring them to class NEXT class meeting. Labs In the Lab – Lab 3 – Creating Philamar Training Database, pg. 70-71 Cases and Places - #1, Advertising Database, pg. 72. Remember, all the data files you need are on Public\Db Design Databases and Database Objects: An Introduction