Introduction to a Database Defining a database Database window in Access The six items in window:...

Post on 13-Dec-2015

220 views 0 download

Tags:

Transcript of Introduction to a Database Defining a database Database window in Access The six items in window:...

Introduction to a Database

Defining a database Database window in Access The six items in window:

Tables, Queries Forms, Reports, Macros, Modules

Database Window

Database Window

Menu Bar

Toolbar

Object Buttons

Creating a Table

Using Table Wizard

Table Wizard ScreenTable Wizard

Creating a Table

Designing a table yourself Field names Data types Primary key Properties

Views--Datasheet or Design

Using Table Wizard

Design ViewPrimary Key

Field Properties

Data Type

Description

Field Names

Data Types Number Text Memo Date/Time Currency Yes/No AutoNumber OLE Hyperlink

Properties

Field size Format Input Mask Caption Default

Value

Validation Rule Validation Text Required Allow Zero

Length Indexed

Table Design Basics

Include necessary data Store data in smallest parts Do not use calculated fields

Tables Design view used to create fields

Datasheet view used to add, edit, or delete records Each column represents a field Records are recorded in rows

Datasheet View

Total Number of Records

Current Record

Triangle indicatesdata has been saved to disk

Each column is a field

Each row is a record

Database Form

Go To Next Record Go To Last Record

Go To First Record

CommandButtons

Label

Text Box(bound to field)

Each page showsone record

Creating a Form Controls--objects Bound control has data source Unbound control: no data source Calculated control: expression as

data source Properties Form Wizard

Form Design View

Click and drag to move Toolbox

Sizing handles

Form View

Combo Box(Drop Down List)

Option GroupCheck box

Query Design View

Table

Run Button

CalculatedField

Query Selection Criteria

Same line = “And”: find items that satisfy both

2 or more lines = “Or”: find items that satisfy either

Parametric Query

Query DesignWindow

Parameter[in brackets]in Criteria Row

Only entries with fields matching entry will show