Plug in t6 basic skills and tools using access 2010
This presentation is the property of its rightful owner.
Sponsored Links
1 / 37

Plug-In T6: Basic Skills and Tools Using Access 2010 PowerPoint PPT Presentation


  • 61 Views
  • Uploaded on
  • Presentation posted in: General

Plug-In T6: Basic Skills and Tools Using Access 2010. Business Driven Technology. LEARNING OUTCOMES. Describe the primary functions using Microsoft Access Describe the steps for creating a new database file using Microsoft Access

Download Presentation

Plug-In T6: Basic Skills and Tools Using Access 2010

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Plug in t6 basic skills and tools using access 2010

Plug-In T6: Basic Skills and Tools Using Access 2010

Business Driven Technology


Learning outcomes

LEARNING OUTCOMES

  • Describe the primary functions using Microsoft Access

  • Describe the steps for creating a new database file using Microsoft Access

  • Describe the steps for creating and modifying a table and fields using Microsoft Access

  • Describe the steps for creating relationships between tables using Microsoft Access


Introduction to access

INTRODUCTION TO ACCESS

  • Microsoft Access is a powerful database program that allows you to enter and organize large amounts of data

  • Access allows you to relate tables and databases to one another, it is often referred to as a relational database


Introduction to access1

INTRODUCTION TO ACCESS

  • A relational database is a group of tables related to one another by common fields

    • A table (or datasheet) looks similar to a spreadsheet

    • Each row in the table contains all the data for a single record

    • Each column in the table represents a specific data value called a field

    • All records have the same fields


The case study

The Case Study

We plan to build a “Bike Rental Database”.


Initial erd

Initial ERD


Finalized erd

Finalized ERD


Full erd

FULL ERD


Alternate erd

Alternate ERD


Rules of pk and fk

Rules of PK and FK

  • General Rules of Relational Database:

    • When creating relationship between tables, for 0ne-Many relationships, the PK of One side becomes the FK of the Many side.

    • In Strong-Weak entity relationship the PK of Strong side becomes the FK of the weak side.


Creating a new blank database

Creating A New Blank Database

  • To start a new database using Microsoft Access, click the Blank Database option in the New File task pane

  • The first thing you do is name your database

  • In Access, the database file cannot be moved to another disk or folder using the Save As command


Creating a new blank database1

Creating A New Blank Database

  • To create a blank database, follow these steps:

    • Open Access, click the Office button and then click New

    • On the Getting Started with Microsoft Office Access page, under New Blank Database, click Blank Database

    • Enter Slopeside Bikes for the database file name

    • Click Create


Creating a new blank database2

Creating A New Blank Database


Opening an existing database

Opening An Existing Database

  • When you start Access, the task pane lists the most recently opened databases

  • To open a database:

    • Click the Office button and then click Open

    • In the Open dialog box, browse to the database that you want to open

    • Double-click the name of the database to open it, or click the name of the database once to highlight it, then click the Open button


Opening an existing database1

Opening An Existing Database


Using the database templates

Using The Database Templates

  • Here is an overview on how to create a new database using a template:

    • Click the Office button and then click New

    • In the left pane, click Local Templates under Template Categories

    • Several featured templates are displayed in the middle pane

      • Click the Contacts template, accept the default file name Contacts1.accdb and click Create

    • Access creates the database and then opens it


Using the database templates1

Using The Database Templates


Using the database window and object views

Using The Database WindowAnd Object Views

  • Whenever a database is open, Access displays the Database window

  • The Database window serves as the central location for working with the database objects (tables, queries, forms, reports, etc.) in the opened database


Using the database window and object views1

Using The Database WindowAnd Object Views


Using table views

Using Table Views

  • You can open database objects in different views, depending on what you want to do

  • Datasheet view is the view to use when entering data

  • To open a table in Datasheet view from the Database window:

    • Under the Navigation Pane, click the Shutter Bar Open/Close button and make sure that all of the All Access Objects are selected

    • To automatically open a table in Datasheet View, double-click the name of the table under the Tables section of the Navigation Pane

      • This is the Datasheet view where you can enter data in the table

    • To change to Design view, click the View button in the Views group on the toolbar

      • In Design view, you can add or remove fields or change field properties

    • To switch back to Datasheet view, click the View button again


Using table views1

Using Table Views


Creating and modifying tables

CREATING AND MODIFYING TABLES

  • Access gives you several different ways to create tables:

    • Create a table using data entry

    • Create a table in Design view


Creating a table using data entry

Creating a Table Using Data Entry

  • Sometimes you need to create a very simple table. In this case, the data entry method might be easiest. Avoid this if you have more than table in DB.

  • To create a table using the data entry method:

    • Click the Create tab and then click the Table button

    • The new table appears and is ready for data entry

    • Rename the fields that you are going to use by double-clicking the field name (Field1, Field2,etc.)and typing the new field name (First Name, Last Name, etc.)


Creating a table using data entry1

Creating a Table Using Data Entry


Creating a table in design view

Creating A Table In Design View

  • To create a table using the data entry method:

    • Click the Create tab, and then click the Table Design button

    • Click in the Field Name cell and type Bike ID

    • Click in the Data Type cell, click the list arrow and select Number

    • To make the Bike ID field a primary key, click on the Primary Key button in the Tools group on the toolbar

    • In the Field Properties pane (below the table), make sure the Required property is set to Yes and the Field Size is set to Long Integer


Creating a table in design view1

Creating A Table In Design View


Changing data types

Changing Data Types

  • By default, the data type for a new field is text

  • To change the data type for a field:

    • Open the table in Design view

    • Click the data type for the field that you want to change

    • Click the drop-down arrow to see the list of available data types

    • Select the appropriate data type for your data


Changing data types1

Changing Data Types


Using the format property

Using The Format Property

  • Use the format property to ensure that data are entered in a consistent format

  • To select a predefined format or enter a custom text format:

    • Open the BIKE table in Design view

    • Click the Cost Per Hour field

    • Click the Format drop-down arrow to display the list of predefined formats

    • Select the Currency format

    • Close the BIKE table window and Save


Using the format property1

Using The Format Property


Defining relationships

DEFINING RELATIONSHIPS

  • Objects in your database are related to one another through relationships defined by common fields between tables

  • There are three types of relationships:

    • One-to-many

    • One-to-one

    • Many-to-many


Defining relationships1

DEFINING RELATIONSHIPS

  • When these fields have the same names, Access automatically creates the one-to-many relationship for you

    • The fields may have different names

    • In those cases, you may want to manually create the relationship using the Relationships window


Using the relationships window

Using The Relationships Window

  • To define relationships between tables follow these steps:

    • Open the Relationships window by clicking on the Database Tools tab and selecting the Relationships button

    • Select each table listed (i.e., BIKE, CUSTOMER, and RENTAL) and click the Add button, then click the Close button

    • To define a new relationship, click and drag the Bike ID from the BIKE table and drop it on the Bike ID in the RENTAL table

    • Click the Create button in the Edit Relationships dialog box

    • Select the Enforce Referential Integrity box

    • Click the Create button


Using the relationships window1

Using The Relationships Window


Using the relationships window2

Using The Relationships Window


Using the relationships window3

Using The Relationships Window

  • Notice the symbols on the relationship lines

    • The “1” indicates the “one” table in the one-to-many relationship

    • The infinity symbol “∞ ” indicates the “many” table

    • Whenthese symbols appear, you know that the relationship has referential integrity enforced


Using the relationships window4

Using The Relationships Window


  • Login