database management using microsoft access

12
Database Management Using Microsoft Access Xinhua Chen, Ph.D. Chinese Association of Professionals in Science and Technology March 23, 2003

Upload: kaden

Post on 10-Jan-2016

40 views

Category:

Documents


4 download

DESCRIPTION

Database Management Using Microsoft Access. Xinhua Chen, Ph.D. Chinese Association of Professionals in Science and Technology March 23, 2003. Steps for Creating an MS Access Application. Get requirements from users Design table structures Implement the design Create tables Create queries - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Database Management Using Microsoft Access

Database Management Using Microsoft Access

Xinhua Chen, Ph.D.

Chinese Association of Professionals in Science and Technology

March 23, 2003

Page 2: Database Management Using Microsoft Access

Steps for Creating an MS Access Application

1. Get requirements from users2. Design table structures3. Implement the design

• Create tables• Create queries• Create forms as user interface• Create reports

Page 3: Database Management Using Microsoft Access

What can MS Access do?• Relational database management system• Database design tools – Relationship diagrams• Database implementation tools

– Table designer– Query designer– Form designer– Visual Basic for Applications (VBA) code editor– Macro designer– Web page designer (Access 2000, Access XP)– Report designer

Page 4: Database Management Using Microsoft Access

How does MS Access Store Data?

• Tables, queries, forms, reports and Visual Basic code are all stored in one file with the file extension “mdb”

Page 5: Database Management Using Microsoft Access

Sample Database Application

• Membership management database for Chinese Association of Professionals in Science and Technology (CAPST) – This is just a demo database.

Page 6: Database Management Using Microsoft Access

Requirements• Manage contact information of members• Record payment of membership dues• Of the five societies, assign members to

appropriate societies• Record specialties of members• Reports

– Specialties of members– Mailing labels

Page 7: Database Management Using Microsoft Access

Table Design

• Terms– Record: A row in a table– Field: A column in a table– Key field: a field that uniquely identifies a record. For

example, the MemberID field uniquely identifies a member record

– Index: Creating an index for a field facilitates fast searching when the field is specified in a searching criteria

– One-to-one and one-to-many relationship– Referential integrity

Page 8: Database Management Using Microsoft Access

Query Design

• A query is expressed as a SQL statement. (SQL: Structured Query Language.)

• A query may output one or more fields from one or more tables. Criteria may be specified.

• Query Designer is commonly used to create queries.

Page 9: Database Management Using Microsoft Access

Form Design

• Form provides a user interface for tables or queries.

• Form is created and maintained using the Form Designer.

• You may use the Form Wizard to create an initial design, then modify the design manually.

Page 10: Database Management Using Microsoft Access

Report Design

• Report is used to display or print data extracted from tables or queries.

• Report is created and maintained using the Report Designer

• You may use the Report Wizard to generate an initial report, then modify it manually.

Page 11: Database Management Using Microsoft Access

Other Ideas on this Database

• Add tables to record events– Seminars, conferences, picnics, board meetings– include photos, meeting minutes

• Add a table to store board members of every CAPST board and duties

• Anything else related to CAPST• When the database gets too bulky, consider

upsizing to Microsoft SQL Server, but keep Access as a front end user interface.

Page 12: Database Management Using Microsoft Access

What’s Next?

• Learn how to use macrosThe following are for power user or

developers• Learn how to make data relatively secure• Learn how to write Visual Basic for

Applications (VBA)• Learn how to use software components

created by others