Presentation is loading. Please wait.

Presentation is loading. Please wait.

CPSC 203 Introduction to Computers Lab 39, 40 By Jie (Jeff) Gao.

Similar presentations


Presentation on theme: "CPSC 203 Introduction to Computers Lab 39, 40 By Jie (Jeff) Gao."— Presentation transcript:

1 CPSC 203 Introduction to Computers Lab 39, 40 By Jie (Jeff) Gao

2 24 February 2004CPSC 203 Labs by Jie Gao2 Introduction to Database  What is a database?  A database is a collection of information related to a particular subject or purpose.  Why database?  Keep consistent information altogether  Easy to manage and find useful information  Easy to manage related information

3 24 February 2004CPSC 203 Labs by Jie Gao3 An Example IDVendorModelTypePrice 001Dell Dimension 8300 Desktop$1499 002Dell Inspiron XPS Laptop$3269 003IBM ThinkCentre A30 Desktop$649 004IBM ThinkPad T41 Laptop$2839 005IBM ThinkPad X31 Laptop$2259 006Sun Blade 2000 Desktop$10101

4 24 February 2004CPSC 203 Labs by Jie Gao4 Terminology (1) IDVendorModelTypePrice 001Dell Dimension 8300 Desktop$1499 002Dell Inspiron XPS Laptop$3269 003IBM ThinkCentre A30 Desktop$649 004IBM ThinkPad T41 Laptop$2839 005IBM ThinkPad X31 Laptop$2259 006Sun Blade 2000 Desktop$10101 Field Table Record

5 24 February 2004CPSC 203 Labs by Jie Gao5 Terminology (2)  DBMS  Database Management System  Database Objects in Access  Table  Query  Form  Report  Pages ……

6 24 February 2004CPSC 203 Labs by Jie Gao6 Plan for the Lab  First part  Basic operation in Access: create table, alter table, input data, append or insert data, sort records, forms, …  Second part  Advanced operation in Access: queries, reports, …  Assignment requirements

7 24 February 2004CPSC 203 Labs by Jie Gao7 Creating A Table  Design table structure  Add fields  Select data type for fields  Set input mask for fields  Set primary key  Give the table a name

8 24 February 2004CPSC 203 Labs by Jie Gao8 Alter A Table  Change in design view  Everything could be changed  If delete a field, the data in that field will be deleted

9 24 February 2004CPSC 203 Labs by Jie Gao9 Edit Data  Input data in datasheet view  The format should conform to the mask  Move insert point among records using the navigator at the bottom of the datasheet view

10 24 February 2004CPSC 203 Labs by Jie Gao10 A Little More Work  Sort  By a field  Ascending or descending

11 24 February 2004CPSC 203 Labs by Jie Gao11 Forms in Access  A form in Access is used to provide a friendly interface to the user  The user can input data into a table through a form created on that table  The user can also navigate data by using the form

12 24 February 2004CPSC 203 Labs by Jie Gao12 Create a Form  Two methods: Wizard or Design View  Form Wizard is easy to use. You can create a form for a table on the fly!  Design View can provide you more power. You can implement advanced features!

13 24 February 2004CPSC 203 Labs by Jie Gao13 Form Wizard  Select  Which fields will appear in the form You can select fields from multiple tables  Form type  Background  Name  You can click “Finish” when you accept the defaults for the following steps.

14 24 February 2004CPSC 203 Labs by Jie Gao14 Form Design View  You can  Add controls to the form  Drag fields into the form  Adjust the form layout  Add header or footer  Even do something like programming


Download ppt "CPSC 203 Introduction to Computers Lab 39, 40 By Jie (Jeff) Gao."

Similar presentations


Ads by Google