ain100a microsoft access level 1

80
Accelerated Computer Training for Working Professionals Factory 2007 Case Orange Coast Database Associates Course (800)355-9855 or http://ocdatabases.itgo.com Orange Coast Database Associates Specializing in Microsoft Office, Access, SQL, and related technologies Classes custom designed forWorking Professionals http://ocdatabases.itgo.com San Juan Capistrano, CA (800)355-9855 AIN100A Introduction to Microsoft Access Level 1

Upload: dan-durso

Post on 07-Nov-2014

1.070 views

Category:

Technology


0 download

DESCRIPTION

AIN100A Introduction to Microsoft Access level 1. Covers databases, tables, relationships, datasheet, filters, queries, report and forms.

TRANSCRIPT

Page 1: AIN100A Microsoft Access Level 1

Accelerated Computer Training for Working Professionals Factory 2007 Case

Orange Coast Database Associates Course (800)355-9855 or http://ocdatabases.itgo.com

Orange CoastDatabase Associates

Specializing in Microsoft Office,

Access, SQL, and related technologiesClasses custom designed forWorking Professionals

http://ocdatabases.itgo.com

San Juan Capistrano, CA

(800)355-9855

AIN100A Introduction to MicrosoftAccess Level 1

Page 2: AIN100A Microsoft Access Level 1

1

AIN100A - Introduction toAccess

Quick introduction to Access forexperienced Windows users

P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.dhdursoassociates.com

1

FactoryAIN100A2

Orange Coast DatabaseAssociates

Loose association of local Universityinstructors and IT Professionals.

Started in 2004

Training– Public classes in San Juan Capistrano using

standardized materials

– Private classes for groups (typically on-site) andindividuals

Consulting & Programming (incl. offshore)

2

Page 3: AIN100A Microsoft Access Level 1

2

FactoryAIN100A3

AIN100A - Introduction to Access

Introduction (s) Facilities Course Packet (Contents may vary)

– Student Questionnaire– PowerPoint handouts for all sessions– Evaluation form– Training certificate– Supplemental materials (Catalog, etc.)

3

Books

Microsoft Access Plain & Simple;Curtis Frye

Microsoft Access Bible; CaryPrague

Available from major bookstores

FactoryAIN100A44

Page 4: AIN100A Microsoft Access Level 1

3

FactoryAIN100A55

FactoryAIN100A6

MS Access Introductory (100Level) Curriculum

AIA101

AMP110Macros

AIN104Reports& Forms

AIN102Queries

AIN100TAIN100

Incl. A & B

6

Page 5: AIN100A Microsoft Access Level 1

4

FactoryAIN100A7

AIN100 – Introduction to Access

Quick pace for experienced windows users

Assumes no prior knowledge of Access

End-user, not programmer, oriented

Somewhat structured towards personal usefor analysis and reporting

Two levels – Day 1 (AIN100A) and Day 2(AIN100B)

7

FactoryAIN100A8

AIN100A - Introduction to Access I

Introduction

Tables

Data

Relationships

Filters

Queries

Reports I

Forms I

Switchboards(2007) orNavigation Forms (2010)

Course Topics:

8

Page 6: AIN100A Microsoft Access Level 1

5

FactoryAIN100A9

Introduction to Access

Industry Standard Approach:

Tables Table Designer

Queries Query designer

Reports Wizard then modify

Forms Wizard then modify

Macros Macro Designer

Access has many ways to accomplish tasks. As an acceleratedcourse we will cover only the most common.

9

FactoryAIN100A10

AIN100A - Introduction to Access I

2 Sessions

Lecture

Demo

Student “hands-on” - by the end of theclass the student will have constructed asmall, functional application

Exercises are cumulative – later examplesbuild on objects created earlier

Course Format:

10

Page 7: AIN100A Microsoft Access Level 1

6

FactoryAIN100A11

AIN100A - Introduction to Access I

Session 1– Introduction

– Tables & Data

– Filters

Session 2– Queries

– Reports I

– Forms I

– Switchboards/Navigation I

Course Schedule (2 sessions):

11

FactoryAIN100A12

Database Design – Critical Topic

What do I want?– (Outputs)

What have I got?– (Inputs)

What do I need to do to getthere?– (Process)

Note: we have a full day course (DBD201/AIN100T) on this important topic.

12

Page 8: AIN100A Microsoft Access Level 1

7

FactoryAIN100A13

Define Your Needs First

Draw apicture

Write adescription

PRODUCTS

EMPLOYEESC.C.Toys

ORDERS

13

Summary

Introduced course topics and approach

Reviewed reference material

Touched on database design in preparationfor next module

14

Page 9: AIN100A Microsoft Access Level 1

8

Notes

15

Notes

16

Page 10: AIN100A Microsoft Access Level 1

Factory Access Tables & Data1

Introduction to Microsoft Access

Module

Introduction to Access, Tables, andRelationships

P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

FactoryAccess Tables & Data2

Module Outline

Topic 1: Introduction & Tables

Topic 2: Manipulating and sorting Tables

Topic 3: Relating Tables

Three parts:

Page 11: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data3

Module Hands On

– Create working folder with supplied files

– Create a database

– Create 3 tables (w/validation rules and masks)

– Populate tables

– Import and Export Tables

– Create permanent links

– Create a simple query

– Compute calculated field(s)

– Create a multi-table query with summary aggregates

Students “hands-on”:

Factory Access Tables & Data4

Introduction to Microsoft Access

Part 1:

Introduction to Access and Tables

Page 12: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data5

But first - Create Folder

Create a folder yourname (or similar) inMy Documents – this is where yourdatabase and other files will go.

Optionally, copy in the labor.txt andemployees.xls files from the instructorsupplied location or CD.

FactoryAccess Tables & Data6

Access Modes

Menu-driven interface - Interact with a databaseand its objects using menu commands

Program mode - Lets you store instructions in a VBAprogram file

This course concentrates on the menu interface butdoes cover macros which can be used to “program” aseries of actions

Page 13: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data7

Database Terminology

Database – in Access a repository in which tables,reports, queries, and other objects are stored

Table – stores facts about one subject (entity)

Record - contains related information about anentity “instance”

Field - contains a fact about an entity

Relational Database - allows you to link records fromtwo or more tables based on the contents of acommon field. Access is a relational database.

FactoryAccess Tables & Data8

Database Terminology (cont.)

Key - used to order, identify, and retrieve recordsin the database

Primary key - unique identifier for a particularrecord. Only one per table.

Index – like a book index. Speeds searches andjoins. Can have many per table.

Table structure - the arrangement of informationwithin a record, the type of characters, fieldlength, limitations, etc.

Page 14: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data9

Database Terminology (cont.)

Object – used in database world as generic term forqueries, reports, indexes, tables, etc. Not the sameas programming object.

Form - paper-like method of accessing and enteringdata in a table

Query – retrieves information from Access tables

Report - provides the ability to arrange table dataas well as to perform calculations and then print apaper-based report

FactoryAccess Tables & Data10

Sample Application – Factory2000

Simple cost accountingapplication

Employees work on workorders

Clock labor hours for eachwork order

Page 15: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data11

Recording Factory2000 Labor Hours

EmpNo fName lName Rate Wono Descr Hours

12 Bob Smith 15 A1 Casting 12

13 Mary Chavez 20 A1 Casting 22

14 Alicia Parks 25 B3 Ass’ly 15

14 Alicia Parks 25 C2 Screws 18

What problems do you see with this approach?

FactoryAccess Tables & Data12

Factory2000 Relational Database Structure

EmpNo fName lName Rate MgrNo

12 Bob Smith 15 13

13 Mary Chavez 20

14 Alicia Parks 25 12

EmpNo Wono Start End Hours

12 A1 1/1/01 1/31/01 20

14 C2 2/1/01 2/28/01 42

14 B3 1/1/01 2/28/01 40

employees

Labor

Wono Descr Std

A1 Casting 30

B3 Fitting 50

C2 Screws 70

Work_orders

Page 16: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data13

Creating a Database

Ways to create a database

– Create a database using an Accesstemplate or Wizard – (not alwaysrecommended)

– Create a blank database and then insertyour own objects – we will use thismethod in this course

FactoryAccess Tables & Data14

Creating an Access Database

Create thedatabase inyour desktopfolder with ameaningfulname

Page 17: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data15

Creating a Table

Click new from tables tab Naming a Table

– Up to 64 “standard” characters can be used– Do not use an extension– No leading spaces or control characters, in fact

try to avoid spaces altogether

Add fields one by one Set Field Properties in Field Properties

box

FactoryAccess Tables & Data16

Designing Fields

Field Type – text, datetime, number, etc.

Field Width – 10 characters, etc.

Caption – “Column title” for display

Format – Determines how the field is displayed(long date, short date, etc.)

Click toolbar key symbol to make primary key

Set indexed for secondary keys, required, etc.

Page 18: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data17

Setting Properties in the Table Designer

FactoryAccess Tables & Data18

Hands On - Create Tables

Employees

Work_Orders

Labor

Page 19: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data19

Employees Table Definition

EmpNo text(2), primary key

Fname text(10)

Lname text (15), required

Rate currency, required

MgrNo text(2)

(Instructor led)

All with captions

FactoryAccess Tables & Data20

Work_Orders Table Definition

WoNo text(2), primary key

Descr text(15)

StdHrs number(single,2), required

Accum number(single,2), required

(On your own)

Add captions, too

Page 20: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data21

Labor Table Definition

EmpNo text(2), primary key

WoNo text(2), primary key

Start datetime, required

End datetime

Hours number(single,2)

(On your own)

Add captions, too

FactoryAccess Tables & Data22

Field Validation & Masks

Add some validations– Test a numeric field for > 0

– Try checking one field against another

– Etc.

Add captions if not added already

Add an input mask

Change a display format

Etc.

Page 21: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data23

Datasheets

Datasheet window - displays the contents of a tablein a spreadsheet-like format

– Each row contains a record

– Each column contains a field

Speedbar - appears at the bottom of the windowand is used to navigate through the records in atable

FactoryAccess Tables & Data24

Datasheet View

Page 22: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data25

Entering & Editing Records

Enter table data from thehandouts or use your owndata

FactoryAccess Tables & Data26

Employees Table Data

Page 23: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data27

Work_Orders Table Data

FactoryAccess Tables & Data28

Labor Table Data

Page 24: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data29

Printing a Table

Access allows you to create “quick and dirty”reports by printing the datasheet

– A row/column presentation is used

– Field names appear along the top

– Records are rows

– Fields are columns

– A grid is printed around each field

Manipulating the Datasheet

Gridlines – controlled by Cells Effectsdialog box

Can control background color, fonts,etc.

Fields can be resized and moved

Also, hidden and locked like aspreadsheet

30

Page 25: AIN100A Microsoft Access Level 1

Record Pointer

Record pointer (thick black arrow head) helps youkeep track of where you are in a table

The character is used in the left-hand table cellsto indicate the pointer location

The pointer moves by using keyboard, scrollbar, orspeedbar commands

=> Changes are saved when you move to next record

31

Find Command

Use the Edit | Find command sequence orclick the Find toolbar button

Either command activates the Find in fielddialog box

Searches can have “Wildcards” (in factsophisticated Unix style searches are available)

32

Page 26: AIN100A Microsoft Access Level 1

One Field Sort

Select the column to be used in the sort

Click the desired Sort Ascending orDescending toolbar button

33

Multiple Field Sort

Filter - used to sort data or restrictrecords shown

Use Records | Filter | Advanced Filter/Sortcommand sequence

Activates the filter window

Specify the fields and sort order

Execute by clicking the Apply Filter/Sortbutton of the toolbar

34

Page 27: AIN100A Microsoft Access Level 1

Factory Access Tables & Data35

Introduction to Microsoft Access

Topic 3

Relating Tables

FactoryAccess Tables & Data36

Relating Tables

Command sequence – Tools | Relationships

Parent table - table used as the main tablefor a relationship

Child table - the related table, often hasseveral records for each record in theparent table

Page 28: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data37

Referential Integrity

Referential integrity - makes certain thatrelated records are present

Orphan record - a child record without acorresponding parent record

FactoryAccess Tables & Data38

Table Links

In this context means relate two or moretables on columns of data

Permanent link –

– established using the Relationships command

– is always in effect once defined

Transient link - defined using the query-by-example feature of Access

Page 29: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data39

Creating a Permanent Link

Drag fromPK to FK

FactoryAccess Tables & Data40

Create Permanent Links

Link all Factory2000 tables

Enforce referential integrity

Normal, default joins for now

Page 30: AIN100A Microsoft Access Level 1

FactoryAccess Tables & Data41

Permanent Links

Factory Access Tables & Data42

Introduction to Microsoft Access

End of Module

P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

Page 31: AIN100A Microsoft Access Level 1

Notes

43

Notes

44

Page 32: AIN100A Microsoft Access Level 1

Factory Access - Accelerated Queries1

Microsoft Access

Module:

Queries

P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

FactoryAccess - Accelerated Queries2

Module Hands On

– Create a simple query

– Create a multi-table query

– Create calculated fields

– Create a summary query

– Concatenate fields

– Create a parameter query

Students “hands-on”:

Page 33: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries3

Creating a Query

Activate the Create tab of the Databasewindow

Click the Query Design button

Interact with the dialog boxes

FactoryAccess - Accelerated Queries4

Query Results

Results placed in a dynaset in a window

Dynaset can be used like a regular table– Most useful when you work with fields

from several tables– Any changes that are made to a dynaset

field are also made to the originalrecord

Page 34: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries5

Query Design Window

QBE grid - controls which fields appear inthe dynaset

Parts of the grid

– Field - contains the name of the field

– Table - contains the field’s table name

– Sort - controls the order of displayed data

– Show - displays a field in the dynaset

– Criteria - enter a condition to display selectedrecords

FactoryAccess - Accelerated Queries6

Criteria

Logical Comparison Operators– <, >, =, =<, >=. <>

Special Operators– LIKE

– IS NULL

– BETWEEN

– IN

Special characters– [ square brackets around names]

– (parentheses around function arguments)

– # pound sign around dates#

Page 35: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries7

Like (“Wild Card Matches”)

ANSI standard

Wherecustomer_last_name like“Jo%”

Like “Jo_”

Microsoft Access

Wherecustomer_last_name like“Jo*”

Like “Jo?”

• * means match any string of characters; ? meansmatch one character.• Access actually allow more sophisticated Unix typesearch patterns as well – see help

FactoryAccess - Accelerated Queries8

Create a Simple Query

Use Work_Orders table

Show fields: all except accum

Sort by WoNo

Only records where descriptioncontains an “s”

Save your query as qrySimple

Page 36: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries9

Simple Query (Find all records with an “S in the

description field)

Query by Example (QBE) Grid

FactoryAccess - Accelerated Queries10

Joining Tables

Tables can be joined for performing a query

– Must have a common field

– Linking in QBE grid performed via a dragoperation

– Join types: inner, left outer, right outer

– Use show tables dialog to bring up list of tables

Page 37: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries11

Joining two TablesDrag fromPK to FK

Double Click tablename to add

FactoryAccess - Accelerated Queries12

Create a multi-table query

Join Labor and Employees

Show following fields: all from labor,fname, lname and rate fromemployees

Sort by empno then wono

Save your query as qryLaborDetail

Page 38: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries13

Multi-table Query Design

FactoryAccess - Accelerated Queries14

Multi-table Query Results

Page 39: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries15

Calculated Fields

Can embed calculations in a query

Creates a new temporary field whichappears in the dynaset

Store your calculations there

Can use an expression “builder” to help

FactoryAccess - Accelerated Queries16

Query with Calculated Field(use the builder)

Page 40: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries17

Query with Calculated Field

Use qryLaborDetail

Add a calculated field whichshows the cost of a laborticket

Save your query asqryLaborDetail_2

FactoryAccess - Accelerated Queries18

Query with Calculated Field Results

Page 41: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries19

Concatenated Fields

Can “add” two character fieldstogether

Use & operator

Example: fname & “ “ & lname

FactoryAccess - Accelerated Queries20

Concatenated Fields

Create a new labordetailquery

Add a column with theemployee’s full name

This can be used later inreports, etc.

Save your query asqryLaborDetail_3

Page 42: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries21

Concatenated Fields Results

FactoryAccess - Accelerated Queries22

Summarizing Columns

SQL aggregate functions– Sum

– Count

– Avg

– Etc.

Activated by clicking the Total toolbar button

Adds a Total line to the QBE query grid

All selected columns must be in group by or anaggregate

Page 43: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries23

Query with Aggregate

FactoryAccess - Accelerated Queries24

Query with Aggregate

Modify qryLaborDetail2

Drop work order fields

Sum the hours and cost

Save your query asqryLaborGrouped

Page 44: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries25

Query with Aggregate Results

FactoryAccess - Accelerated Queries26

Parameter Queries

Accept a variable when run

Order Noparameter

Page 45: AIN100A Microsoft Access Level 1

FactoryAccess - Accelerated Queries27

Parameter Queries

Create a parameter query

Base on qryLaborDetail_3

Show all fields

Prompt for order no

Save as qryParam

FactoryAccess - Accelerated Queries28

Parameter Query Results

Page 46: AIN100A Microsoft Access Level 1

Factory Access - Accelerated Queries29

Accelerated Introduction to Access

End of Module

P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

Notes

FactoryAccess - Accelerated Queries30

Page 47: AIN100A Microsoft Access Level 1

Notes

FactoryAccess - Accelerated Queries31

Notes

FactoryAccess - Accelerated Queries32

Page 48: AIN100A Microsoft Access Level 1

Factory Access - Reports & Forms1

Microsoft Access

Module -

Basic Reports

P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

FactoryAccess - Reports & Forms2

Module Hands On

– Create a summary report

– Format the report

– Add conditional formatting

Students “hands-on”:

Page 49: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms3

Creating reports

Two basic methods:– Report Wizard

– Report Designer

Common approach is to start w/the Wizard then modify the result

FactoryAccess - Reports & Forms4

Report Wizard

Building a Report by Using a Report Wizard

– Use the Report tab of the database window

– Can base report on table or query

– Report Wizard - a series of dialog boxes that stepsyou through the process of building a report

Page 50: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms5

FactoryAccess - Reports & Forms6

Report Wizard

After selecting the table or query you givethe Wizard additional information…

– Grouping – for summaries, etc.

– Sorting – for sort order within group, pluswhich summary function to use

– Format and style

Page 51: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms7

Report Wizard

Create a labor report

– Use qryLaborDetail query

– Select wono, empno, fname,lname, hours

– Group by wono

– Use summary options: sum hours,

– Layout and style to taste

– Save as rptLabor

FactoryAccess - Reports & Forms8

Report Design Window

Menu Bar and Toolbar Rulers - vertical and horizontal

Report Layout

Toolbox

Field List Box - used for adding fields to a reporttemplate

Properties Sheet or Section Detail Sheet - controls theappearance of a report object

Scroll Bars

Page 52: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms9

Report Designer

FactoryAccess - Reports & Forms10

Redesigning a Report

Able to move field and title boxes around thedesign template via a drag operation

Able to resize the report bands using selectionhandles

Able to add additional titles using label control

Able to align text as well as change the fontand size of type used

Can add background fill effects, etc.

Page 53: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms11

Report Designer

Open rptLabor in design view– Format headings

– Remove extra subtotal row andreduce band height

– Fill title with grey background

– Etc.

– Save with same name(rptLabor)

FactoryAccess - Reports & Forms12

Report Designer Results

Page 54: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms13

Report Designer

Adding Fields– Use toolbox, or

– Drag and drop from field list

– Set control source on property sheet if appropriate(see below)

– Put SQL function around the control source for aggregatefields

Two types– Bound

– Unbound (no control source)

FactoryAccess - Reports & Forms14

Report DesignerF

unct

ion

Page 55: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms15

Report Designer

Adding a new cost column

We will do this in the AIN100Bcourse

FactoryAccess - Reports & Forms16

Full Work Orders Report Results

Page 56: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms17

Conditional Formatting

Format, Conditional Formatting commandsfrom Menu Bar

Can be used for forms or reports– Examines the contents of a field

– Based upon field’s contents able to specify: Font/Font size/Font color

Background color

Text attributes (boldface, underline, italics)

Try flagging stdhrs >= 70

Factory Access - Reports & Forms18

Microsoft Access

[End of Module]P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

Module -

Reports

Page 57: AIN100A Microsoft Access Level 1

Notes

FactoryAccess - Reports & Forms19

Notes

FactoryAccess - Reports & Forms20

Page 58: AIN100A Microsoft Access Level 1

Factory Access - Reports & Forms1

Introduction to Microsoft Access

Module -

Basic Forms

P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

FactoryAccess - Reports & Forms2

Module Hands On

– Build two simple data entry forms

– Create a sub-form

– Build a master-detail form from above forms

Students “hands-on”:

Page 59: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms3

Forms

Form - provides for customized data entryinstead of using the datasheet window

Also used to establish criteria for reports andqueries

Found on the Forms tab of the databasewindow

Form Wizards - a series of dialog boxesprompting you about your form requirements

FactoryAccess - Reports & Forms4

Form Wizard

Specify source table or query, fields, etc. (again, notefields can be bound or unbound)

Generally pick columnar style

Modify or preview result

Numerous properties can be set– Format (Appearance, scroll bars, etc.)

– Data (recordsource, etc.)

– Event (These can call macros and program code)

– Other

Page 60: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms5

FactoryAccess - Reports & Forms6

Form Wizard(Instructor Led)

Build a simple data entry form basedon the employees table– Modify the form when click finish

– Set the caption property to “MaintainEmployee Information”

– Make text labels “semi-bold”

– Size the form as desired

– Set record selector to “NO” if desired

– Save as frmEmployees

Page 61: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms7

Basic Employees form

FactoryAccess - Reports & Forms8

Form Wizard(On your own)

Build a simple data entry form basedon the work_orders table– Modify the form when click finish

– Set the caption property to “WorkOrders”

– Make text labels “semi-bold”

– Size the form as desired

– Set record selector to “NO” if desired

– Save as frmWork_Orders

Page 62: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms9

Basic Work Orders Form

FactoryAccess - Reports & Forms10

Form Designer

Design surface for forms

Add controls from toolbox

Some controls themselves have wizards whichcan invoke certain actions (run query, openreport, etc)

Page 63: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms11

FactoryAccess - Reports & Forms12

Form Designer

We will build a criteria selection form for theparameter query qryParam (using designview) in the AIN100B course.

Page 64: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms13

Criteria Selection Form Results

FactoryAccess - Reports & Forms14

Subforms

Same idea as sub reports

Main form uses parent table; sub form useschild table

Several ways to create them

– Create sub form first, drag and drop to main form

– Use subform/subreport control

– Create with form wizard directly

Page 65: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms15

Subforms

Same idea as sub reports

Main form uses parent table; sub form useschild table

Make sure you have a permanent link

Create sub form first, drag and drop to mainform

Can also create with form wizard directly

FactoryAccess - Reports & Forms16

Typical Subform

Page 66: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms17

Subforms

Create a subform namedsfrmLaborDetail

– Use the form wizard

– Base on qryLaborDetail_3 query

– Pick tabular style (like a table orspreadsheet grid)

FactoryAccess - Reports & Forms18

Labor Detail Subform

Page 67: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms19

Subforms

Modify the frmWork_Orders form. Itwill be the new main form

– Drag and drop the sub formsfrmLaborDetail

– Remove extraneous labels

– Size and format as you like

– Save as frmWork_OrdersDetail

FactoryAccess - Reports & Forms20

Placing a subform on a main form

Page 68: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms21

Note link master and link child

FactoryAccess - Reports & Forms22

Work Orders Detail Form

Page 69: AIN100A Microsoft Access Level 1

FactoryAccess - Reports & Forms23

Sub Forms via the Wizard

Sub Forms can also be built automatically

Select parent table fields

Then child table fields

The child table will go in the subform

FactoryAccess - Reports & Forms24

Main and sub forms via Wizard(Instructor Demonstration)

Page 70: AIN100A Microsoft Access Level 1

Factory Access - Reports & Forms25

Introduction to Microsoft Access

[End of Module]P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

Module -

Basic Forms

Notes

FactoryAccess - Reports & Forms26

Page 71: AIN100A Microsoft Access Level 1

Notes

FactoryAccess - Reports & Forms27

Notes

FactoryAccess - Reports & Forms28

Page 72: AIN100A Microsoft Access Level 1

Factory Access Navigation1

Module – Navigation

P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

Microsoft Access

Access navigation

Newer Access 2010 databases use the newNavigation forms

Older MDB databases still have theSwitchboard Manager tool available

FactoryAccess Navigation2

Page 73: AIN100A Microsoft Access Level 1

Creating a Navigation form

Select the desired style

FactoryAccess Navigation3

Navigation Forms

Drag and drop forms and reports one by one

FactoryAccess Navigation4

Page 74: AIN100A Microsoft Access Level 1

Adjust properties

Adjust properties as desired and save asfrmNavigation

FactoryAccess Navigation5

Set startup options (File | Options)

Set the Access options to open the navigationform when it starts up

FactoryAccess Navigation6

Page 75: AIN100A Microsoft Access Level 1

FactoryAccess Navigation7

Navigation Form

Create a navigation form foryour application

FactoryAccess Navigation8

Switchboards

Create via a switchboard manager tool

Creates a tree of launch forms – mainform is called switchboard and is placedwith your other form objects

Page 76: AIN100A Microsoft Access Level 1

FactoryAccess Navigation9

Launching Switchboard Manager

FactoryAccess Navigation10

Switchboard Manager

Yes – we want to create a new switchboard!

Page 77: AIN100A Microsoft Access Level 1

FactoryAccess Navigation11

Switchboard Manager

FactoryAccess Navigation12

Switchboards

Create a switchboard for yourapplication

Page 78: AIN100A Microsoft Access Level 1

Factory Access Navigation13

Microsoft Access

End of Module

P.O. Box 6142Laguna Niguel, CA 92607949-489-1472http://www.d2associates.com

Please fill out and turn in yourend-of-course evaluations.

Notes

FactoryAccess Navigation14

Page 79: AIN100A Microsoft Access Level 1

Notes

FactoryAccess Navigation15

Notes

FactoryAccess Navigation16

Page 80: AIN100A Microsoft Access Level 1

Accelerated Computer Training for Working Professionals

Orange Coast Database Associates Course (800)355-9855 or http://ocdatabases.itgo.com

Orange CoastDatabase Associates

Specializing in Microsoft Office,

Access, SQL, and related technologiesComputer Training, Programming & Consulting

32422 Alipaz St., Suite A-15

San Juan Capistrano, CA

(800)355-9855 (Toll Free) | (949)489-1472 (Direct) | (949)485-6284 (Fax)

http://ocdatabases.itgo.com | [email protected]

Accelerated Computer Training