Presentation is loading. Please wait.

Presentation is loading. Please wait.

BA271 Week 7 Lecture Building the database Dave Sullivan.

Similar presentations


Presentation on theme: "BA271 Week 7 Lecture Building the database Dave Sullivan."— Presentation transcript:

1 BA271 Week 7 Lecture Building the database Dave Sullivan

2 Status Report … Review where we are … –Midterm essay– Being graded –Website Project – Being graded –Wiki Contributions– awaiting grading To be harvested tomorrow @ 9 a.m. To be harvested tomorrow @ 9 a.m. –Access #1 Access #1Access #1

3 Level 1 Objectives: Creating the Tables Create a database and tables Create a database and tables Work in design view Work in design view Set a field’s data type size and properties Set a field’s data type size and properties Use the input mask wizard and the lookup wizard Use the input mask wizard and the lookup wizard Validate fields Validate fields

4

5

6

7 Creating the Database Must create tables before other objects Must create tables before other objects Can create a table in three ways Can create a table in three ways –Enter data in datasheet view –Use wizard –Design table in design view

8 Formatting Field Values Using an Input Mask Input mask Input mask –Predefined format –Applied to field –Values are displayed using format specified –Ensures that all of necessary data entered Literal characters Literal characters –Not stored in database –User does not need to type them Input mask wizard Input mask wizard

9 Validating Fields to Ensure Accurate and Consistent Data Validation rule Validation rule –Compares data entered by user against one or more valid values Validation rule property Validation rule property –Specifies valid values that users can enter Validation text property Validation text property –Displayed if user enters invalid value

10

11 Access Activity #2 … In this assignment, you will complete two sets of exercises from the Mountain River Adventures Case: In this assignment, you will complete two sets of exercises from the Mountain River Adventures Case: –Part 1: Complete steps 2 through 9 for Case 4 in Tutorial 3. –Part 2: Complete steps 2 through 4 and 8 through 12 in Tutorial 5. Resources Resources –Begin by working through the exercises in Tutorial 3 and Tutorial 5. Tutorial 3Tutorial 5 Tutorial 3Tutorial 5

12 Today’s hands-on activity Work through sample queries in prior Query Quizzes. Work through sample queries in prior Query Quizzes. Query Quizzes Query Quizzes

13 Automating Data Entry by Using a Default Field Value Default value property Default value property –Enters default value into any type of field –Except for AutoNumber field

14 Automating Data Entry by Using a Lookup Field Lookup field Lookup field –Lets user select field value –From List of existing field values stored in database List of existing field values stored in database List of values specified when lookup field created List of values specified when lookup field created Change field’s data type to lookup wizard Change field’s data type to lookup wizard

15 Level 2 Objectives: Populating and Relating the Database Tables Import data into a database Import data into a database Set a table’s primary key Set a table’s primary key Create foreign keys Create foreign keys Create one-to-many and many-to- many relationships Create one-to-many and many-to- many relationships Use a subdatasheet to view related records in a table Use a subdatasheet to view related records in a table

16 Working with Primary and Foreign Keys Primary key and foreign key counterparts Primary key and foreign key counterparts –Must have same data type and field size –Fields must contain identical values Primary key value must exist before entering corresponding record Primary key value must exist before entering corresponding record –If referential integrity set User cannot enter null value into primary key field User cannot enter null value into primary key field Required property Required property –Nonprimary key field –Ensure that users enter value into field

17 Relationships Window

18 User-Level Security (continued) Workgroup ID (WID) Workgroup ID (WID) –Unique character string of 4 to 20 characters –Identifies workgroup Choose which database objects to secure Choose which database objects to secure Personal ID (PID) Personal ID (PID) –4 to 20 character string value –Identifies user After security established After security established –Access starts and opens logon dialog box


Download ppt "BA271 Week 7 Lecture Building the database Dave Sullivan."

Similar presentations


Ads by Google