Download presentation
Presentation is loading. Please wait.
Published bySpencer Watkins Modified over 9 years ago
1
CPSC 203 Introduction to Computers Lab 21, 22 By Jie (Jeff) Gao
2
31 May 2004CPSC 203 Labs by Jie Gao 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
31 May 2004CPSC 203 Labs by Jie Gao An Example ID F. Name L. Name Program Start Date 232398AndyChuCPSC01/09/00 134764JieGaoCPSC01/09/02 324509PeterSmithMATH01/01/02 254389JohnSmithCHEM01/05/01 342532BillLeeCPSC01/01/03 112543HelenJamesMATH01/07/00
4
31 May 2004CPSC 203 Labs by Jie Gao Terminology (1) Field Record Table ID F. Name L. Name Program Start Date 232398AndyChuCPSC01/09/00 134764JieGaoCPSC01/09/02 324509PeterSmithMATH01/01/02 254389JohnSmithCHEM01/05/01 342532BillLeeCPSC01/01/03 112543HelenJamesMATH01/07/00
5
31 May 2004CPSC 203 Labs by Jie Gao Terminology (2) DBMS Database Management System Database Objects in Access Table Query Form Report Pages ……
6
31 May 2004CPSC 203 Labs by Jie Gao 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
31 May 2004CPSC 203 Labs by Jie Gao 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
31 May 2004CPSC 203 Labs by Jie Gao Alter A Table Change in design view Everything could be changed If delete a field, the data in that field will be deleted
9
31 May 2004CPSC 203 Labs by Jie Gao 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
31 May 2004CPSC 203 Labs by Jie Gao A Little More Work Sort By a field Ascending or descending
11
31 May 2004CPSC 203 Labs by Jie Gao 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
31 May 2004CPSC 203 Labs by Jie Gao 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
31 May 2004CPSC 203 Labs by Jie Gao 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
31 May 2004CPSC 203 Labs by Jie Gao 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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.