49
Microsoft Access 2013 ® ® Tutorial 12 Managing and Securing a Database

Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

Embed Size (px)

Citation preview

Page 1: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

Microsoft Access 2013

® ®

Tutorial 12Managing and Securing a Database

Page 2: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPObjectives• Session 12.1– Filter data in a table and a form – Save a filter as a query and apply the saved query

as a filter– Create a subquery– Create a multivalued field

New Perspectives on Microsoft Access 2013 2

Page 3: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPObjectives• Session 12.2– Create an Attachment field– Use an AutoNumber field – Save a database as a previous version– Analyze a database’s performance– Link a database to a table in another database– Use the Linked Table Manager – Split a database– Encrypt a database with a password– Set database properties and startup options

New Perspectives on Microsoft Access 2013 3

Page 4: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPManaging and Securing a Database

• Case - Chatham Community Health Services Administering the Health Database

• User would like to add multivalued fields and Attachment fields and has concerns about database management, database security, and the database’s overall performance. You’ll also set database properties and startup options to complete the development of the Health database

New Perspectives on Microsoft Access 2013 4

Page 5: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPManaging and Securing a Database (Cont.)

New Perspectives on Microsoft Access 2013 5

Page 6: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 6

Managing and Securing a Database (Cont.)

Page 7: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 7

Filtering Data

• Using an AutoFilter in a Table Datasheet– Advanced Filter/Sort lets you specify multiple

selection criteria and specify a sort order for selected records

Page 8: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 8

Filtering Data (Cont.)

Page 9: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 9

Filtering Data (Cont.)

Page 10: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 10

Filtering Data (Cont.)

• Saving a Filter as a Query

Page 11: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 11

Filtering Data (Cont.)

• Applying a Filter Saved as a Query

Page 12: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 12

Creating a SubQuery

• Subquery– When you place a second SELECT statement inside

of a SELECT statement– Known as an inner query– First SELECT statement is known as the parent

query or outer query

Page 13: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 13

Creating a SubQuery (Cont.)

Page 14: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 14

Creating a SubQuery (Cont.)

Page 15: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 15

Creating a SubQuery (Cont.)

Page 16: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 16

Creating a SubQuery (Cont.)

Page 17: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 17

Using Multivalued Fields

• Multivalued Field– A lookup field that allows you to store more than

one value

Page 18: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 18

Using Multivalued Fields (Cont.)

Page 19: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 19

Using Multivalued Fields (Cont.)

Page 20: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 20

Using Multivalued Fields (Cont.)

Page 21: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 21

Using Multivalued Fields (Cont.)

Page 22: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 22

Using Multivalued Fields (Cont.)

Page 23: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

New Perspectives on Microsoft Access 2013 23

Using Multivalued Fields (Cont.)

Page 24: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPDatabase Properties

New Perspectives on Microsoft Access 2013 24

Page 25: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPCreating an Attachment Field

New Perspectives on Microsoft Access 2013 25

• Attachment Data Type– Attaches one or more files to a table record

Page 26: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPCreating an Attachment Field (Cont.)

New Perspectives on Microsoft Access 2013 26

Page 27: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPCreating an Attachment Field (Cont.)

New Perspectives on Microsoft Access 2013 27

Page 28: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPUsing an AutoNumber Field

New Perspectives on Microsoft Access 2013 28

• Autonumber – the default ID primary key field– Automatically inserts a unique number in this field

for every record in the table

Page 29: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPUsing an AutoNumber Field (Cont.)

New Perspectives on Microsoft Access 2013 29

Page 30: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPUsing an AutoNumber Field (Cont.)

New Perspectives on Microsoft Access 2013 30

Page 31: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPSaving an Access Database as a Previous Version

New Perspectives on Microsoft Access 2013 31

• The default file format for databases you create in Access 2013 uses the .accdb filename extension– Referred to as the Access 2007 file format– None of the versions of Access prior to Access 2007 can

open a database that has the .accdb filename extension.– You can save an .accdb database to a format that is

compatible with previous versions of Access— .mdb filename extension

– When Access 2007 file format database uses features such as multivalued and Attachment fields, you cannot save the database in a previous version

Page 32: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPAnalyzing Database Performance with the Performance Analyzer

New Perspectives on Microsoft Access 2013 32

• The Performance Analyzer is an Access tool that you can use to optimize the performance of an Access database

Page 33: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPAnalyzing Database Performance with the Performance Analyzer (Cont.)

New Perspectives on Microsoft Access 2013 33

Page 34: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPAnalyzing Database Performance with the Performance Analyzer (Cont.)

New Perspectives on Microsoft Access 2013 34

Page 35: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPAnalyzing Database Performance with the Performance Analyzer (Cont.)

New Perspectives on Microsoft Access 2013 35

Page 36: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPLinking Tables and Using the Linked Table Manager

New Perspectives on Microsoft Access 2013 36

• A linked table is a table that is stored in a file outside the open database and that can be updated from the open database– You can retrieve and update (add, change, and delete)

records in a linked table, but you can’t change its structure

Page 37: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPLinking Tables and Using the Linked Table Manager (Cont.)

New Perspectives on Microsoft Access 2013 37

Page 38: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPLinking Tables and Using the Linked Table Manager (Cont.)

New Perspectives on Microsoft Access 2013 38

Page 39: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPLinking Tables and Using the Linked Table Manager (Cont.)

New Perspectives on Microsoft Access 2013 39

Page 40: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXP

• The Database Splitter splits an Access database into two files: one file contains the tables, and the other file contains the queries, forms, reports, and other database objects– Users can have their own copies of the other file and add

their own queries, reports, and other objects to handle their processing needs

– The database that contains the tables is called the back-end database

– The database that contains the other objects, including the user interface, is called the front-end database

Using the Database Splitter

New Perspectives on Microsoft Access 2013 40

Page 41: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPUsing the Database Splitter (Cont.)

New Perspectives on Microsoft Access 2013 41

Page 42: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPUsing the Database Splitter (Cont.)

New Perspectives on Microsoft Access 2013 42

Page 43: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPSecuring an Access Database

New Perspectives on Microsoft Access 2013 43

• Security refers to the protection of a database against unauthorized access, either intentional or accidental

• Encryption translates the data in a database to a scrambled format that’s indecipherable to a word processor or other program and stores it in an encrypted format

• Decrypting a database reverses the encryption• Passwords can be assigned to the database to

prevent unauthorized access to the database

Page 44: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPSecuring an Access Database (Cont.)

New Perspectives on Microsoft Access 2013 44

• Shared access of the database with others allows two or more users to open and use the same database at the same time

• Exclusive access prevents other users from opening and using the database at the same time– Clicking the Open option in the list allows you to select

how the database is opened

• Reading includes any database action that does not involve updating the database

Page 45: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPSecuring an Access Database (Cont.)

New Perspectives on Microsoft Access 2013 45

• Locking denies access by other users to data while Access processes one user’s updates to the database

• Row-level locking denies access by other users to the table rows one user is in the process of updating– Other users can update the database simultaneously as

long as the rows they need to update are not being updated, and therefore not being locked, by other users at the same time

Page 46: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPSetting the Database Properties and Startup Options

New Perspectives on Microsoft Access 2013 46

• Startup options take place when a database opens– You can:• Specify the name that appears in the Access window

title bar• Prevent users from using the Navigation Pane• Specify a form that is automatically opened when you

open a database• Disable the Enable error checking property, which

checks for design errors in forms and reports and alerts you to errors by displaying the Error Checking Options button

Page 47: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPSetting the Database Properties and Startup Options (Cont.)

New Perspectives on Microsoft Access 2013 47

Page 48: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPSetting the Database Properties and Startup Options (Cont.)

New Perspectives on Microsoft Access 2013 48

Page 49: Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database

XPXPXPSetting the Database Properties and Startup Options (Cont.)

New Perspectives on Microsoft Access 2013 49