Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow:...

36
Access - Project 1 Access - Project 1 What Is a Database? A Collection of Data Organized in a manner to allow: » Access » Retrieval » Use of That Data

Transcript of Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow:...

Page 1: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Access - Project 1 Access - Project 1

What Is a Database?– A Collection of Data – Organized in a manner to allow:

»Access»Retrieval»Use of That Data

Page 2: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Database Management Database Management SystemSystem DBMS allows one to:

– Create a Database– Add, Change, and Delete Data– Sort Data– Retrieve Data in the Database– Create Forms and Reports

Page 3: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

DatabaseDatabase

Consists of Tables That Are Related

Tables Consists of Rows and Columns

Each Column Is Called a Field Each Row Is Called a Record.

Page 4: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

RecordRecord

Information about a given – person– product– event

–Records Make up a Table

Page 5: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

FieldField

An Specific piece of information within a record

Examples of Fields:»Social Security Number, »First Name»City»GPA

Page 6: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Primary KeyPrimary Key A unique identifier for each record

Two records cannot contain the same value in this field.

social security number GOOD name BAD

Page 7: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Page 8: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Records in a TableRecords in a Table

Each Record Is Set up Exactly the Same.

Each Field in Every Record Is in the Same Position.

Page 9: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Starting AccessStarting Access

Double Click on Microsoft Office Group Window.

Double Click on Microsoft Access Icon (First One in Top Row).

Page 10: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Starting AccessStarting Access

Double Click on the File Drawer (Control Box) to Remove the Message

Or Click Once on the File Drawer;

and Choose Close

Page 11: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Access DesktopAccess Desktop

Top Row --Title Bar Next Row -- Menu Bar Third Row -- Tool Bar Bottom of Screen -- Status BarStatus Bar Ready Means It’S Ready to

Accept Commands.

Page 12: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Creating a DatabaseCreating a Database

Click on File Menu Select New Database Dialog Box Click on Drive A Type Name of Database on

Filename Text Box Click on Ok

Page 13: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Database in AccessDatabase in Access

Very Important: All Tables and Related Forms,

Queries, Etc. Are Saved in One File on Your Disk.

The Only File You Will See on Your Disk Directory Will Be the Database Name.

Page 14: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

To Create a TableTo Create a Table

You Must Describe the Design (Structure) of the Table by Describing the Fields:

Page 15: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Field NamesField Names Must Be Unique. No Other Field in This

Table Can Have Exactly the Same Name. Can Be up to 64 Characters in Length Can Contain Letters, Digits, Spaces, and

Most Punctuation Marks Cannot Contain Periods (.); Exclamation

Points (!); Or Square Brackets ([ ])

Page 16: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Data TypesData Types Text - May Contain Any Characters. Numeric - May Contain Only

Numbers and Decimal Point. Currency - Can Contain Only

Money Amounts. Will Display With $; Commas, and 2 Decimal Places.

Page 17: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Field Types ContinuedField Types Continued

Date/Time (May Choose the Format Desired)

Yes/No (Logical Field for Data That Must Always Be Answered “Yes or No”

Memo Field for General Information.

Page 18: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

DescriptionDescription Allows You to Describe the Field and

What Data It Contains. It’S for You, the Operator to

Determine What’S in the Field. Turn to Page 10 for Detailed

Information on the Customer Table.

Page 19: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Field LengthsField Lengths Numeric and Currency Fields Have Length

Automatically Set (However It May Be Changed by Clicking the Down Arrow in the Field Width Row of the Properties Box).

Default for Text Fields Is 50; but You May Change the Width to Your Specifications up to 256.

For Numeric Data Not Used in Calculations; Choose Text Type.

Page 20: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Creating a TableCreating a Table In Database Dialog Box Click on New Button New Dialog Box Opens Click on New Table

Page 21: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Defining Table StructureDefining Table Structure

Type in Field Name Press Enter or Tab to Go to Data Type Select Data Type; Press Enter or Tab Type in Description Click on “Key” Icon to Designate a

Primary Key Click on Width; to Change the Width of a

Text Field.

Page 22: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Correcting ErrorsCorrecting Errors Click on Entry, Backspace or Delete

Wrong Data; Key in New Data To Delete a Field, Point to the Leftmost

Column, Click Mouse Button; Press the Delete Key.

To Insert a Field, Click Mouse Button in Leftmost Column of Row Below Needed Insertion; Press the Insert Key.

Page 23: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Saving a TableSaving a Table

Choose Save AsClick on File MenuType in Name of File

–Customer

Click on Ok

Page 24: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

To Close a FileTo Close a File

Double Click on Control Box on Menu Line (File Drawer) or Choose Close Command From File Menu.

Page 25: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

To Add RecordsTo Add Records

Be Sure the Database Is Open Highlight the Table Name Click on Open Screen for Data Entry Appears Key in Data for Each Field Then Press

Enter or Tab to Move to the Next Field. Use Shift + Tab to Move Back to the Left

One Field.

Page 26: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Status LineStatus Line

Shows Current Record Total Number of Records To Close a File (Table) Double Click

on Control Box (File Drawer) or Choose File Menu and Choose Close.

Page 27: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Adding Additional RecordsAdding Additional Records

Highlight Table Name Click on Open Enter New Data for Additional

Records Records Are Ordered by Data

in Primary Key Field

Page 28: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Printing Table ContentsPrinting Table Contents

Click on Print Icon Choose All Click on Setup Button -- to Change to

Landscape If Records Are Wider Than the Screen.

Click on Ok to Close Setup Screen. Click on Ok to Start Printing.

Page 29: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Creating Additional TablesCreating Additional Tables

Make Sure Database Is Open Click on New

Page 30: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Using a Form to View Data or Using a Form to View Data or Enter New RecordsEnter New Records

Click on Customer Table Click on Open Click on Autoform Icon Form Shows One Record at a Time. Use Navigation Buttons to Move

Between Records.

Page 31: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Navigation ButtonsNavigation Buttons(Bottom of Screen)(Bottom of Screen)

Line With Left Arrow -- First Record Left Arrow -- Previous Record Right Arrow -- Next Record Right Arrow With a Line -- Last

Record

Page 32: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Closing the FormClosing the Form

Double Click on Control Box (File Drawer) or Choose Close From the File Menu.

Choose Yes to Save the Form. Type in the Form Name You

Desire. Click on Ok.

Page 33: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Using a Saved FormUsing a Saved Form

Click on Form Highlight Customer Form Click on Open Don’T Have to Save It Again;

It’S Already Saved

Page 34: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Creating a GraphCreating a Graph With Database Open Click on Form Click on New Select Table for Graph Data Click on Form Wizards Click on Graph; Ok Select Fields to Be Included. X-Axis Must Be Chosen First. Click on Next (Follow Instructions.)

Page 35: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Required AssignmentsRequired Assignments Computer Lab Assignment 1, Pp. 56-57. The

Database Will Be Named Items. The Tables Will Be Product and Class. Three Printouts at #4, #7, and #8.

Computer Lab Assignment 3, Pp. 59-61. The Database Will Be Named Mov. The Tables Will Be Movie and Director. Four Printouts at #4, #7, #11, and #12.

Staple All 7 Pages Together in Consecutive Order for 1 Grade.

Page 36: Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.

Bonus AssignmentBonus Assignment Computer Lab Assignment 2, Pp. 57-59.

The Database Will Be Named Emp. The Tables Will Be Employee and Department.

There Will Be 4 Printouts at #4, #7, #9, and #10. Staple All 4 Pages Together in Consecutive Order for One Grade.