Introduction To Microsoft Access
Introduction To Microsoft Access
Introduction To Microsoft Access
Personal databases
Appointments Addresses To-dos
Increasing fraction of Web pages driven by databases Allows pages customized for the user
Learn how to use Access Develop understanding of database systems i.e., Word, Excel, PowerPoint, FrontPage Prior experience with Access not needed
Put paper records in computer-based files One record in a paper form One row (record) in computerized table of data
But . . .
Many redundant data entries needed for this system Overwhelming complexity
Continuing problem- identifying and eliminating incorrect entries Wasted storage space Large effort to maintain this system
Course No.
1003
Course
Geol. for Jocks
Term
Fall 2002
Section
001
Teacher
Joseph Sagacious
Student
Robinson, Ed
Grade
B-
Geology
1003
Fall 2002
001
Joseph Sagacious
Langer, Yvonne
Geology
Math Math Math Math Math Math History History History
1003
0503 0503 0503 0503 0603 0603 1113 1113 1113
Fall 2002
Fall 2002 Fall 2002 Fall 2002 Spring 2003 Spring 2003 Spring 2003 Spring 2003 Spring 2003 Spring 2003
001
001 001 002 001 001 001 001 001 001
Joseph Sagacious
Bernadette Whist Bernadette Whist Edward Wilson Bernadette Whist Edward Wilson Edward Wilson Ronald Regan Ronald Regan Ronald Regan
CF CA
Student- Personal data only Administrator- needs multiple views May need other views (e.g., counselors) Teachers can add grades
Students cant change anything Administrative personnel can add courses, class sections, or teachers
Course No.
1003
Course
Geol. for Jocks Geol. for Jocks Geol. for Jocks Algebra II Algebra II Algebra II Algebra II Trigonometry Trigonometry History I History I History I
Term
Fall 2002
Section
001
Teacher
Joseph Sagacious
Student
Robinson, Ed
Grade
B-
Geology
1003
Fall 2002
001
Joseph Sagacious
Langer, Yvonne
Geology
Math Math Math Math Math Math History History History
1003
0503 0503 0503 0503 0603 0603 1113 1113 1113
Fall 2002
Fall 2002 Fall 2002 Fall 2002 Spring 2003 Spring 2003 Spring 2003 Spring 2003 Spring 2003 Spring 2003
001
001 001 002 001 001 001 001 001 001
Joseph Sagacious
Bernadette Whist Bernadette Whist Edward Wilson Bernadette Whist Edward Wilson Edward Wilson Ronald Regan Ronald Regan Ronald Regan
CF CA
Teacher View data for each class taught Student- Personal data only
Course schedule Final grades
Administrator- needs multiple views May need other views (e.g., counselors) Teachers can add grades Students cant change anything
Can only view his/her data
Course No.
1003 1003 1003 0503 0503 0503 0503 0603 0603 1113 1113 1113
Course
Geol. for Jocks Geol. for Jocks Geol. for Jocks Algebra II Algebra II Algebra II Algebra II Trigonometry Trigonometry History I History I History I
Term
Fall 2002 Fall 2002 Fall 2002 Fall 2002 Fall 2002 Fall 2002 Spring 2003 Spring 2003 Spring 2003 Spring 2003 Spring 2003 Spring 2003
Section
001 001 001 001 001 002 001 001 001 001 001 001
Teacher
Joseph Sagacious Joseph Sagacious Joseph Sagacious Bernadette Whist Bernadette Whist Edward Wilson Bernadette Whist Edward Wilson Edward Wilson Ronald Regan Ronald Regan Ronald Regan
Student
Robinson, Ed Langer, Yvonne Briggs, Jim Bob Robinson, Ed Langer, Yvonne Briggs, Jim Bob Robinson, Ed Langer, Yvonne Briggs, Jim Bob Robinson, Ed Langer, Yvonne Briggs, Jim Bob
Grade
BA CF CA
Database systems
(After twenty years and several intermediate stages of development )
Application programs
Get data from DBMS Standardized language to get data (SQL)
Courses
Dept. Geol. Math Math History Course No. 1003 0503 0603 1113 Course Geol. for Jocks Algebra II Trigonometry History I CourseID 111 222 223 444 StudentFirst Ed Yvonne Jim Bob
Students
StudentLast Robinson Langer Briggs Teachers TeacherFirst Joseph Bernadette Edward Ronald TeacherLast Sagacious Whist Wilson Regan Teacher No. 111-22-2458 222-11-4500 333-11-0123 444-22-3210 Student No. 555-11-5432 666-11-6543 777-22-8765
Teachers
Course Sections CourseID 111 222 SectionID 111-2002-1-001 222-2002-1-001 Term Fall 2002 Fall 2002 Section 001 001 Teacher No. 111-22-2458 222-11-4500 TeacherFirst Joseph Bernadette Edward Ronald TeacherLast Sagacious Whist Wilson Regan Teacher No. 111-22-2458 222-11-4500 333-11-0123 444-22-3210
222
222 223 444
222-2002-1-002
222-2002-2-001 223-2002-2-001 444-2002-2-001
Fall 2002
Spring 2003 Spring 2003 Spring 2003
002
001 001 001
333-11-0123
222-11-4500 333-11-0123 444-22-3210
111-2002-1-001
Course Sections CourseID 111 222 222 222 223 444 SectionID 111-2002-1-001 222-2002-1-001 222-2002-1-002 222-2002-2-001 223-2002-2-001 444-2002-2-001 Term Fall 2002 Fall 2002 Fall 2002 Spring 2003 Spring 2003 Spring 2003 Section 001 001 002 001 001 001 Teacher No. 111-22-2458 222-11-4500 333-11-0123 222-11-4500 333-11-0123 444-22-3210 222-2002-1-002 223-2002-2-001 444-2002-2-001 111-2002-1-001 222-2002-1-001 223-2002-2-001 444-2002-2-001 111-2002-1-001 222-2002-1-001 222-2002-2-001 444-2002-2-001
777-22-8765
777-22-8765 777-22-8765 777-22-8765 666-11-6543 666-11-6543 666-11-6543 666-11-6543 555-11-5432 555-11-5432 555-11-5432 555-11-5432
CA
A C-
BF
Provides flexibility
Introduction to Access
Sample databases
School
Used with this presentation See Tutorials & Resources on our web site
Northwind
Included with every version of Access since 2.0
Identify the entity types Add attributes (if desired) Identify relationships between entities
Identifying Entities
Students
Course
Class_Sections
Teacher
Grades
Adding Attributes
StudentNo StudentFirstName
Students
Address
CellPhone
WorkPhone
HomePhone
Many: Many Remember: numbers refer to relationship, not to population of entity type Optional
(e.g., ClassSection may be optional to Course- a course may not be taught every semester) (e.g., Teacher mandatory for ClassSection)
Mandatory
Identifying Relationships
1
Students
Many Many
have
advised by
obtain Grades in
Grades
1 1
Many
Course
has
Teacher
1
Class_Sections
teaches
has
Employee_Information
Table Wizard- not that useful Datasheet View: view or enter data
School1.mdb
????????
Make queries
School2.mdb ????????
1:Many relationships
Lookup Wizard- good for looking up real names for meaningless ID numbers When in doubt, use Text Default values assigned by Access usually OK
Unless youre likely to run out of storage space
Before data added Before relationships between tables made
Field Size:
Input Mask:
Caption:
Default value:
Validation Text:
School3.mdb ???????????
Datasheet View
Useful in sub-forms
Creating Reports
School4.mdb ???????????
Page Preview
Similar to Page Preview in other Office applications
School5.mdb ???????????
Disadvantages
Advantage: you dont leave Access to use Data Access Pages Disadvantage: limited functionality