SlideShare a Scribd company logo
Factory Access Accel. Introduction v1.021
Accelerated Introduction to Access
ModuleModule
Introduction to Access, Tables, and
External Data
P.O. Box 6142
Laguna Niguel, CA 92607
949-489-1472
http://www.d2associates.com
slides.1@dhdursoassociates.com
FactoryAccess Accel. Introduction v1.022
Module Outline
 Part 1: Introduction & Tables
 Part 2: External Data
 Part 3: Relating Tables
Three parts:Three parts:
FactoryAccess Accel. Introduction v1.023
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 Accel. Introduction v1.024
Accelerated Introduction to Access
Part 1:Part 1:
Introduction to Access and Tables
FactoryAccess Accel. Introduction v1.025
But first - Create Folder
 Create a folder yourname (or similar) in
My Documents – this is where your
database and other files will go.
 Optionally, copy in the labor.txt and
employees.xls files from the instructor
supplied location or CD.
FactoryAccess Accel. Introduction v1.026
Access Modes
 Menu-driven interface - Interact with a database
and its objects using menu commands
 Program mode - Lets you store instructions in a VBA
program file
 This course concentrates on the menu interface but
does cover macros which can be used to “program” a
series of actions
FactoryAccess Accel. Introduction v1.027
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 an
entity “instance”
 Field - contains a fact about an entity
 Relational Database - allows you to link records from
two or more tables based on the contents of a
common field. Access is a relational database.
FactoryAccess Accel. Introduction v1.028
Database Terminology (cont.)
 Key - used to order, identify, and retrieve records
in the database
 Primary key - unique identifier for a particular
record. Only one per table.
 Index – like a book index. Speeds searches and
joins. Can have many per table.
 Table structure - the arrangement of information
within a record, the type of characters, field
length, limitations, etc.
FactoryAccess Accel. Introduction v1.029
Database Terminology (cont.)
 Object – used in database world as generic term for
queries, reports, indexes, tables, etc. Not the same
as programming object.
 Form - paper-like method of accessing and entering
data in a table
 Query – retrieves information from Access tables
 Report - provides the ability to arrange table data
as well as to perform calculations and then print a
paper-based report
FactoryAccess Accel. Introduction v1.0210
Sample Application – Factory2000
 Simple cost accounting
application
 Employees work on work
orders
 Clock labor hours for each
work order
FactoryAccess Accel. Introduction v1.0211
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 Accel. Introduction v1.0212
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
employeesemployees
LaborLabor
Wono Descr Std
A1 Casting 30
B3 Fitting 50
C2 Screws 70
Work_ordersWork_orders
FactoryAccess Accel. Introduction v1.0213
Creating a Database
 Ways to create a database
– Create a database using an Access
template or Wizard – (not always
recommended)
– Create a blank database and then insert
your own objects – we will use this
method in this course
FactoryAccess Accel. Introduction v1.0214
Creating an Access 2000 Database
Create the
database in
your desktop
folder with a
meaningful
name
FactoryAccess Accel. Introduction v1.0215
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 Accel. Introduction v1.0216
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.
FactoryAccess Accel. Introduction v1.0217
Setting Properties in the Table Designer
FactoryAccess Accel. Introduction v1.0218
Hands On - Create Tables
 Employees
 Work_Orders
 Labor
FactoryAccess Accel. Introduction v1.0219
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 captionsSave as tblEmployees
FactoryAccess Accel. Introduction v1.0220
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, tooSave as tblWork_orders
FactoryAccess Accel. Introduction v1.0221
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, tooSave as tblLabor
FactoryAccess Accel. Introduction v1.0222
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.
FactoryAccess Accel. Introduction v1.0223
Datasheets
 Datasheet window - displays the contents of a table
in a spreadsheet-like format
– Each row contains a record
– Each column contains a field
 Speedbar - appears at the bottom of the window
and is used to navigate through the records in a
table
FactoryAccess Accel. Introduction v1.0224
Datasheet View
FactoryAccess Accel. Introduction v1.0225
Entering & Editing Records
 Enter table data from the
handouts or use your own
data
FactoryAccess Accel. Introduction v1.0226
Employees Table Data
FactoryAccess Accel. Introduction v1.0227
Work_Orders Table Data
FactoryAccess Accel. Introduction v1.0228
Labor Table Data
[To be imported later]
FactoryAccess Accel. Introduction v1.0229
Printing a Table
 Access allows you to create “quick and dirty”
reports by clicking the toolbar Print button
– 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
FactoryAccess Accel. Introduction v1.0230
Quick Reports
 Report Wizard
– Module 2 covers reports
– For now, be aware a quick report can be
produced using the report wizard
Factory Access Accel. Introduction v1.0231
Microsoft Access
Part 2Part 2
External Data
FactoryAccess Accel. Introduction v1.0232
Office Links
 Publish it with MS Word
 Analyze in MS Excel
 Use Tools | Office Links or the
Toolbar
FactoryAccess Accel. Introduction v1.0233
Exporting a table
 Very simple
 Click File|Export (or save as)
 Specify type: Access can
export to many types: Excel,
Text, etc.
FactoryAccess Accel. Introduction v1.0234
Exporting tables
 Export Work_Orders to CSV
text file.
 Note you can also export to
another Access table. Even
one elsewhere on a LAN!
FactoryAccess Accel. Introduction v1.0235
Using External Data
 Two methods:
– Import the data into a new (or existing table) in your
database
– Link to the data. A table link appears in your
database but the data stays in the original file.
FactoryAccess Accel. Introduction v1.0236
Importing Files
 Another very important feature
 Start from new table dialog, pick
Import Table
 It will start a wizard
 Use advanced to select fields, etc.
 Specifications can be saved for later
use
FactoryAccess Accel. Introduction v1.0237
Importing a table from a Text File
Importing a Text File
FactoryAccess Accel. Introduction v1.0238
Importing from a text file
 Import the instructor-supplied
labor text file into the previously
created labor table
 Save the specification
FactoryAccess Accel. Introduction v1.0239
Linking a table
 Use new table dialog
 Select Link Table
 This will set up a connection to an
external table. It does not become
part of the Access database
 Access can link to many types: Excel,
ODBC connection, etc.
FactoryAccess Accel. Introduction v1.0240
Linking a table
Linking a Table
FactoryAccess Accel. Introduction v1.0241
Link a table
 Link the instructor-
supplied Employees
Excel
 Give it a name like
Employees_xls
Factory Access Accel. Introduction v1.0242
Microsoft Access
Part 3Part 3
Relating Tables
FactoryAccess Accel. Introduction v1.0243
Relating Tables
 Command sequence – Tools | Relationships
 Parent table - table used as the main table
for a relationship
 Child table - the related table, often has
several records for each record in the
parent table
FactoryAccess Accel. Introduction v1.0244
Referential Integrity
 Orphan record - a child record without a
corresponding parent record
 Referential integrity - makes certain that
related records are present
FactoryAccess Accel. Introduction v1.0245
Table Links
 In this context means relate two or more
tables 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
FactoryAccess Accel. Introduction v1.0246
Creating a Permanent LinkCreating a Permanent Link
Drag from
PK to FK
FactoryAccess Accel. Introduction v1.0247
Create Permanent Links
Link all Factory2000 tables
Enforce referential integrity
Normal, default joins for now
FactoryAccess Accel. Introduction v1.0248
Permanent Links
FactoryAccess Accel. Introduction v1.0249
Import Labor Table
 Now import the instructor
supplied labor.txt file into
your labor table
 Try changing an EmpNo or
WoNO to an invalid value
and see what happens
Factory Access Accel. Introduction v1.0250
Accelerated Introduction to Access
End of Module
P.O. Box 6142
Laguna Niguel, CA 92607
949-489-1472
http://www.d2associates.com
slides.1@dhdursoassociates.com

More Related Content

DOC
( 13 ) Office 2007 Coding With Excel And Excel Services
PDF
Style Intelligence Evaluation Documentation
PDF
Creating a repository using the oracle business intelligence administration tool
PPT
Excel 2007 Unit N
PDF
Altering Drop-Down Menus for Admissions IT Service Request Form
DOCX
ENGINEERING CHALLENGES TACKLED WITH SOLIDWORKS ELECTRICAL SOLUTIONS
PDF
Access tips access and sql part 1 setting the sql scene
PDF
資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網
( 13 ) Office 2007 Coding With Excel And Excel Services
Style Intelligence Evaluation Documentation
Creating a repository using the oracle business intelligence administration tool
Excel 2007 Unit N
Altering Drop-Down Menus for Admissions IT Service Request Form
ENGINEERING CHALLENGES TACKLED WITH SOLIDWORKS ELECTRICAL SOLUTIONS
Access tips access and sql part 1 setting the sql scene
資訊服務業技術趨勢-創業懶人包-青年創業及圓夢網

Viewers also liked (20)

PDF
The Gap Between Online Journalism Education and Practice
PDF
SQL201W MySQL SQL Manual
PPTX
El nazisme viscut des del bàndol alemany (clotet, conangla)
PDF
GovProjects.org
 
PPT
SQL302 Intermediate SQL Workshop 2
PPT
Widget SOA
PDF
青年創業及圓夢網 創業稅務大小事【創業懶人包 】
PPT
Ikregeer Overheid20
 
PPT
SQL302 Intermediate SQL Workshop 3
PPTX
SM-Plus Big Picture
PPT
Preparing Students
PPT
AVB202 Intermediate Microsoft Access VBA
PPT
AVB201.1 MS Access VBA Module 1
PPT
SQL302 Intermediate SQL Workshop 1
PDF
鑄造產業轉型升級與發展-創業懶人包-青年創業及圓夢網
PDF
SQL212 Oracle SQL Manual
PPTX
PPT
Farrah bostic 5for5
PPT
AIN102S Access string function sample queries
PPT
Pharma Powerpoint 2
The Gap Between Online Journalism Education and Practice
SQL201W MySQL SQL Manual
El nazisme viscut des del bàndol alemany (clotet, conangla)
GovProjects.org
 
SQL302 Intermediate SQL Workshop 2
Widget SOA
青年創業及圓夢網 創業稅務大小事【創業懶人包 】
Ikregeer Overheid20
 
SQL302 Intermediate SQL Workshop 3
SM-Plus Big Picture
Preparing Students
AVB202 Intermediate Microsoft Access VBA
AVB201.1 MS Access VBA Module 1
SQL302 Intermediate SQL Workshop 1
鑄造產業轉型升級與發展-創業懶人包-青年創業及圓夢網
SQL212 Oracle SQL Manual
Farrah bostic 5for5
AIN102S Access string function sample queries
Pharma Powerpoint 2
Ad

Similar to AIA101.1.MS Access Tables & Data (20)

PPTX
Siddikulla_MS_Access[1].pptx Roll - 220711130077
PDF
Siddikulla_MS_Access[1].pdf ROLL - 220711130077
PPT
HARJOT.ppt gggggggggggggggggggggggggggggggggggggggg
PPTX
Priyank Goel PPT.pptx
PPT
Uses of MS Access in Business
PPTX
Welcome-slides-durham-tech
PPTX
oprate database Application program hardware
PDF
MS ACCESS ( a very simple PPT for studentes)
DOCX
PPT
HARJOT.ppt
PPTX
MS ACCESS PPT.pptx
PPTX
Ms access
PPTX
MS OFFICE INTRODUCTION...........................
DOC
Acccesss notes
PPT
access1.ppt
PPTX
Microsoft access
PPT
Introduction to Microsoft Access2.ppt
PPT
Access.01.ppt
PPT
Microsoft access 2007 tutorial
PPTX
2.3.1 creating database, table and relationship on Access 2003
Siddikulla_MS_Access[1].pptx Roll - 220711130077
Siddikulla_MS_Access[1].pdf ROLL - 220711130077
HARJOT.ppt gggggggggggggggggggggggggggggggggggggggg
Priyank Goel PPT.pptx
Uses of MS Access in Business
Welcome-slides-durham-tech
oprate database Application program hardware
MS ACCESS ( a very simple PPT for studentes)
HARJOT.ppt
MS ACCESS PPT.pptx
Ms access
MS OFFICE INTRODUCTION...........................
Acccesss notes
access1.ppt
Microsoft access
Introduction to Microsoft Access2.ppt
Access.01.ppt
Microsoft access 2007 tutorial
2.3.1 creating database, table and relationship on Access 2003
Ad

More from Dan D'Urso (20)

PPT
SQL201S Accelerated Introduction to MySQL Queries
PPT
LCD201d Database Diagramming with Lucidchart
PPTX
Database Normalization
PPT
VIS201d Visio Database Diagramming
PPT
PRJ101a Project 2013 Accelerated
PPT
PRJ101xl Project Libre Basic Training
PPT
Introduction to coding using Python
PPTX
Stem conference
PDF
SQL200A Microsoft Access SQL Design
PPTX
Microsoft access self joins
PDF
SQL302 Intermediate SQL
PDF
AIN106 Access Reporting and Analysis
PDF
Course Catalog
PDF
AIN100
PPT
SQL206 SQL Median
PPT
SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3
PPT
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2
PPT
SQL202.1 Accelerated Introduction to SQL Using SQL Server Module 1
PDF
SQL202 SQL Server SQL Manual
PDF
AIN102 Microsoft Access Queries
SQL201S Accelerated Introduction to MySQL Queries
LCD201d Database Diagramming with Lucidchart
Database Normalization
VIS201d Visio Database Diagramming
PRJ101a Project 2013 Accelerated
PRJ101xl Project Libre Basic Training
Introduction to coding using Python
Stem conference
SQL200A Microsoft Access SQL Design
Microsoft access self joins
SQL302 Intermediate SQL
AIN106 Access Reporting and Analysis
Course Catalog
AIN100
SQL206 SQL Median
SQL202.3 Accelerated Introduction to SQL Using SQL Server Module 3
SQL202.2 Accelerated Introduction to SQL Using SQL Server Module 2
SQL202.1 Accelerated Introduction to SQL Using SQL Server Module 1
SQL202 SQL Server SQL Manual
AIN102 Microsoft Access Queries

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Spectroscopy.pptx food analysis technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation theory and applications.pdf
PPTX
Cloud computing and distributed systems.
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Machine Learning_overview_presentation.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Machine learning based COVID-19 study performance prediction
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Spectral efficient network and resource selection model in 5G networks
Spectroscopy.pptx food analysis technology
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Assigned Numbers - 2025 - Bluetooth® Document
Network Security Unit 5.pdf for BCA BBA.
Encapsulation theory and applications.pdf
Cloud computing and distributed systems.
A comparative analysis of optical character recognition models for extracting...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Machine Learning_overview_presentation.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Machine learning based COVID-19 study performance prediction
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 3 Spatial Domain Image Processing.pdf
cuic standard and advanced reporting.pdf
MIND Revenue Release Quarter 2 2025 Press Release
“AI and Expert System Decision Support & Business Intelligence Systems”
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

AIA101.1.MS Access Tables & Data

  • 1. Factory Access Accel. Introduction v1.021 Accelerated Introduction to Access ModuleModule Introduction to Access, Tables, and External Data P.O. Box 6142 Laguna Niguel, CA 92607 949-489-1472 http://www.d2associates.com slides.1@dhdursoassociates.com
  • 2. FactoryAccess Accel. Introduction v1.022 Module Outline  Part 1: Introduction & Tables  Part 2: External Data  Part 3: Relating Tables Three parts:Three parts:
  • 3. FactoryAccess Accel. Introduction v1.023 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”:
  • 4. Factory Access Accel. Introduction v1.024 Accelerated Introduction to Access Part 1:Part 1: Introduction to Access and Tables
  • 5. FactoryAccess Accel. Introduction v1.025 But first - Create Folder  Create a folder yourname (or similar) in My Documents – this is where your database and other files will go.  Optionally, copy in the labor.txt and employees.xls files from the instructor supplied location or CD.
  • 6. FactoryAccess Accel. Introduction v1.026 Access Modes  Menu-driven interface - Interact with a database and its objects using menu commands  Program mode - Lets you store instructions in a VBA program file  This course concentrates on the menu interface but does cover macros which can be used to “program” a series of actions
  • 7. FactoryAccess Accel. Introduction v1.027 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 an entity “instance”  Field - contains a fact about an entity  Relational Database - allows you to link records from two or more tables based on the contents of a common field. Access is a relational database.
  • 8. FactoryAccess Accel. Introduction v1.028 Database Terminology (cont.)  Key - used to order, identify, and retrieve records in the database  Primary key - unique identifier for a particular record. Only one per table.  Index – like a book index. Speeds searches and joins. Can have many per table.  Table structure - the arrangement of information within a record, the type of characters, field length, limitations, etc.
  • 9. FactoryAccess Accel. Introduction v1.029 Database Terminology (cont.)  Object – used in database world as generic term for queries, reports, indexes, tables, etc. Not the same as programming object.  Form - paper-like method of accessing and entering data in a table  Query – retrieves information from Access tables  Report - provides the ability to arrange table data as well as to perform calculations and then print a paper-based report
  • 10. FactoryAccess Accel. Introduction v1.0210 Sample Application – Factory2000  Simple cost accounting application  Employees work on work orders  Clock labor hours for each work order
  • 11. FactoryAccess Accel. Introduction v1.0211 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?
  • 12. FactoryAccess Accel. Introduction v1.0212 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 employeesemployees LaborLabor Wono Descr Std A1 Casting 30 B3 Fitting 50 C2 Screws 70 Work_ordersWork_orders
  • 13. FactoryAccess Accel. Introduction v1.0213 Creating a Database  Ways to create a database – Create a database using an Access template or Wizard – (not always recommended) – Create a blank database and then insert your own objects – we will use this method in this course
  • 14. FactoryAccess Accel. Introduction v1.0214 Creating an Access 2000 Database Create the database in your desktop folder with a meaningful name
  • 15. FactoryAccess Accel. Introduction v1.0215 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
  • 16. FactoryAccess Accel. Introduction v1.0216 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.
  • 17. FactoryAccess Accel. Introduction v1.0217 Setting Properties in the Table Designer
  • 18. FactoryAccess Accel. Introduction v1.0218 Hands On - Create Tables  Employees  Work_Orders  Labor
  • 19. FactoryAccess Accel. Introduction v1.0219 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 captionsSave as tblEmployees
  • 20. FactoryAccess Accel. Introduction v1.0220 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, tooSave as tblWork_orders
  • 21. FactoryAccess Accel. Introduction v1.0221 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, tooSave as tblLabor
  • 22. FactoryAccess Accel. Introduction v1.0222 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.
  • 23. FactoryAccess Accel. Introduction v1.0223 Datasheets  Datasheet window - displays the contents of a table in a spreadsheet-like format – Each row contains a record – Each column contains a field  Speedbar - appears at the bottom of the window and is used to navigate through the records in a table
  • 24. FactoryAccess Accel. Introduction v1.0224 Datasheet View
  • 25. FactoryAccess Accel. Introduction v1.0225 Entering & Editing Records  Enter table data from the handouts or use your own data
  • 26. FactoryAccess Accel. Introduction v1.0226 Employees Table Data
  • 27. FactoryAccess Accel. Introduction v1.0227 Work_Orders Table Data
  • 28. FactoryAccess Accel. Introduction v1.0228 Labor Table Data [To be imported later]
  • 29. FactoryAccess Accel. Introduction v1.0229 Printing a Table  Access allows you to create “quick and dirty” reports by clicking the toolbar Print button – 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
  • 30. FactoryAccess Accel. Introduction v1.0230 Quick Reports  Report Wizard – Module 2 covers reports – For now, be aware a quick report can be produced using the report wizard
  • 31. Factory Access Accel. Introduction v1.0231 Microsoft Access Part 2Part 2 External Data
  • 32. FactoryAccess Accel. Introduction v1.0232 Office Links  Publish it with MS Word  Analyze in MS Excel  Use Tools | Office Links or the Toolbar
  • 33. FactoryAccess Accel. Introduction v1.0233 Exporting a table  Very simple  Click File|Export (or save as)  Specify type: Access can export to many types: Excel, Text, etc.
  • 34. FactoryAccess Accel. Introduction v1.0234 Exporting tables  Export Work_Orders to CSV text file.  Note you can also export to another Access table. Even one elsewhere on a LAN!
  • 35. FactoryAccess Accel. Introduction v1.0235 Using External Data  Two methods: – Import the data into a new (or existing table) in your database – Link to the data. A table link appears in your database but the data stays in the original file.
  • 36. FactoryAccess Accel. Introduction v1.0236 Importing Files  Another very important feature  Start from new table dialog, pick Import Table  It will start a wizard  Use advanced to select fields, etc.  Specifications can be saved for later use
  • 37. FactoryAccess Accel. Introduction v1.0237 Importing a table from a Text File Importing a Text File
  • 38. FactoryAccess Accel. Introduction v1.0238 Importing from a text file  Import the instructor-supplied labor text file into the previously created labor table  Save the specification
  • 39. FactoryAccess Accel. Introduction v1.0239 Linking a table  Use new table dialog  Select Link Table  This will set up a connection to an external table. It does not become part of the Access database  Access can link to many types: Excel, ODBC connection, etc.
  • 40. FactoryAccess Accel. Introduction v1.0240 Linking a table Linking a Table
  • 41. FactoryAccess Accel. Introduction v1.0241 Link a table  Link the instructor- supplied Employees Excel  Give it a name like Employees_xls
  • 42. Factory Access Accel. Introduction v1.0242 Microsoft Access Part 3Part 3 Relating Tables
  • 43. FactoryAccess Accel. Introduction v1.0243 Relating Tables  Command sequence – Tools | Relationships  Parent table - table used as the main table for a relationship  Child table - the related table, often has several records for each record in the parent table
  • 44. FactoryAccess Accel. Introduction v1.0244 Referential Integrity  Orphan record - a child record without a corresponding parent record  Referential integrity - makes certain that related records are present
  • 45. FactoryAccess Accel. Introduction v1.0245 Table Links  In this context means relate two or more tables 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
  • 46. FactoryAccess Accel. Introduction v1.0246 Creating a Permanent LinkCreating a Permanent Link Drag from PK to FK
  • 47. FactoryAccess Accel. Introduction v1.0247 Create Permanent Links Link all Factory2000 tables Enforce referential integrity Normal, default joins for now
  • 48. FactoryAccess Accel. Introduction v1.0248 Permanent Links
  • 49. FactoryAccess Accel. Introduction v1.0249 Import Labor Table  Now import the instructor supplied labor.txt file into your labor table  Try changing an EmpNo or WoNO to an invalid value and see what happens
  • 50. Factory Access Accel. Introduction v1.0250 Accelerated Introduction to Access End of Module P.O. Box 6142 Laguna Niguel, CA 92607 949-489-1472 http://www.d2associates.com slides.1@dhdursoassociates.com