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

18
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules

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

Page 1: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Introduction to a Database

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

Tables, Queries Forms, Reports, Macros, Modules

Page 2: 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

Page 3: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Creating a Table

Using Table Wizard

Page 4: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Table Wizard ScreenTable Wizard

Page 5: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Creating a Table

Designing a table yourself Field names Data types Primary key Properties

Views--Datasheet or Design

Using Table Wizard

Page 6: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Design ViewPrimary Key

Field Properties

Data Type

Description

Field Names

Page 7: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

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

Page 8: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Properties

Field size Format Input Mask Caption Default

Value

Validation Rule Validation Text Required Allow Zero

Length Indexed

Page 9: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Table Design Basics

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

Page 10: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

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

Page 11: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

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

Page 12: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

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

Page 13: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

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

data source Properties Form Wizard

Page 14: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Form Design View

Click and drag to move Toolbox

Sizing handles

Page 15: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Form View

Combo Box(Drop Down List)

Option GroupCheck box

Page 16: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Query Design View

Table

Run Button

CalculatedField

Page 17: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Query Selection Criteria

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

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

Page 18: Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.

Parametric Query

Query DesignWindow

Parameter[in brackets]in Criteria Row

Only entries with fields matching entry will show