A database is a collection of data organised in a manner that allows access, retrieval, and use of that data.



Similar documents
Introduction to Microsoft Access 2013

Introduction to Microsoft Access 2010

Introduction to Microsoft Access 2007

Objectives. Understand databases Create a database Create a table in Datasheet view Create a table in Design view

MICROSOFT ACCESS 2007 BOOK 2

Designing Reports in Access

Introduction to Microsoft Access XP


Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Microsoft Access 2010 Part 1: Introduction to Access

Microsoft Office 2010

Create a New Database in Access 2010

Microsoft Office Access 2007 Basics

MS Access. Microsoft Access is a relational database management system for windows. Using this package, following tasks can be performed.

Creating tables in Microsoft Access 2007

Using Microsoft Access

- Suresh Khanal. Microsoft Excel Short Questions and Answers 1

Avery Wizard: Using the wizard with Microsoft Word. This is a simple step-by-step guide showing how to use the Avery wizard in word

Creating and Using Databases with Microsoft Access

Microsoft Access 2010 handout

Chapter 5. Microsoft Access

Learning Services IT Guide. Access 2013

Check out our website!

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

MICROSOFT ACCESS 2003 TUTORIAL

Working with SQL Server Integration Services

Access II 2007 Workshop

Access I Tables, Queries, Forms, Reports. Lourdes Day, Technology Specialist, FDLRS Sunrise

Microsoft Access Rollup Procedure for Microsoft Office Click on Blank Database and name it something appropriate.

General User/Technical Guide for Microsoft Access

Microsoft Access Creating Filters and Tables

MICROSOFT ACCESS TABLES

Creating a Database in Access

Working with Access Tables A Continuation

Getting Started with Access 2007

Appendix A How to create a data-sharing lab

Produced by Flinders University Centre for Educational ICT. PivotTables Excel 2010

for Sage 100 ERP Business Insights Overview Document

Microsoft Access GUI Building

Beginning Level Microsoft Access (Database)

Database Applications Microsoft Access

Crystal Reports Payroll Exercise

Adobe Acrobat: Creating Interactive Forms

Tutorial 3 Maintaining and Querying a Database

Advanced Database Concepts Using Microsoft Access

A Basic introduction to Microsoft Access

Access Tutorial 3 Maintaining and Querying a Database. Microsoft Office 2013 Enhanced

Access NAMES Computerized Database

ECDL. European Computer Driving Licence. Database Software BCS ITQ Level 1. Syllabus Version 1.0

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences

BID2WIN Workshop. Advanced Report Writing

Microsoft Access 2007 Introduction

Use Find & Replace Commands under Home tab to search and replace data.

Microsoft Access 2010 Advanced Queries

PROJECT ON MICROSOFT ACCESS (HOME TAB AND EXTERNAL DATA TAB) SUBMITTED BY: SUBMITTED TO: NAME: ROLL NO: REGN NO: BATCH:

MICROSOFT ACCESS A. CREATING A DATABASE B. CREATING TABLES IN A DATABASE

MS Access Lab 2. Topic: Tables

Using Microsoft Access Databases

Tutorial 3. Maintaining and Querying a Database

Microsoft Office 2010

2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.

Consider the possible problems with storing the following data in a spreadsheet:

Microsoft Access Introduction

2012 Teklynx Newco SAS, All rights reserved.

Using Microsoft Access

How to Edit an . Here are some of the things you can do to customize your

Objectives. Microsoft Office 2007 Access 2007 Vista Notes. Opening a database, Tables, Querying a Database, and Reports

Using an Access Database

MicroStrategy Desktop

Microsoft. Access HOW TO GET STARTED WITH

Stores copies of items you sent to others, by default. Stores items created offline that you want to send the next time you are online

Microsoft Access 2007

IN THIS PROJECT, YOU LEARN HOW TO

Microsoft Access 2010 Overview of Basics

Creating an Address Book Database

European Computer Driving Licence

Producing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA

CONTACTS SYNCHRONIZER FOR IPAD USER GUIDE

SIMPLY REPORTS DEVELOPED BY THE SHARE STAFF SERVICES TEAM

Planning and Creating a Custom Database

Utilizing Microsoft Access Forms and Reports

Create Mailing Labels from an Electronic File

C omputer D riving L icence

Access Tutorial 6: Form Fundamentals

WINDOWS 7 MANAGE FILES AND FOLDER WITH WINDOWS EXPLORER

Elisabetta Zodeiko 2/25/2012

4. The Third Stage In Designing A Database Is When We Analyze Our Tables More Closely And Create A Between Tables

Personal Portfolios on Blackboard

Introduction to Microsoft Office Access 2010

Microsoft Access 2007 Module 1

2009 Braton Groupe sarl, All rights reserved.

Lab 2: MS ACCESS Tables

Creating a Form. A form is something that is created allowing users to enter information in a more visual manner than a datasheet view.

Access Part 2 - Design

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries

Using Delphi Data with Excel and Access

Advanced Word for Windows

ECDL Module 5. REFERENCE MANUAL Databases. Microsoft Access 2003 Edition for ECDL Syllabus Four

Transcription:

Microsoft Access A database is a collection of data organised in a manner that allows access, retrieval, and use of that data. A Database Management System (DBMS) allows users to create a database; add, change, and delete data in the database; retrieve data from the database; and create forms and reports using the data in the database. Microsoft Access is a DBMS. Access Screen Fig. 1 Create a New Database Before you do any works using Access, the first thing you have to do is to create a new database file or open an existing database file. To create a new database file i. Click the Blank Database ( 空 白 資 料 庫 ) Choose the path and type the filename, e.g. student. After you create a database file, a database window will be displayed as show in fig. 2. MICROSOFT ACCESS page 1

fig. 2 The Database window is a special window that allows you to access easily and rapidly a variety of objects such as table ( 資 料 表 ), query ( 查 詢 ), form ( 表 單 ) and report ( 報 表 ). Table A database consists of a collection of tables. To create a table, you should first create the table structure, i.e. define the fields of each record, and then add records to the table. The definition of the fields include stating the following details of each field, i. field name must be unique. i data type type of the data that the field will contain, e.g. Text, Number, Date/Time, etc. description optional, for detail description. To create a new table i. Click New ( 新 增 ) button on the right of the window. Choose Design View ( 設 計 檢 視 ) A window will be displayed as shown in fig. 3. MICROSOFT ACCESS page 2

fig. 3 Then you can define each field in the upper pane. Note that after you have chosen the field data type, you can define the more specific properties of the field in the lower pane. These properties include i. Field size( 欄 位 大 小 ) It limits the largest number of characters stored in the field. i iv. Format( 格 式 ). The format of data displayed. It does not affect the actual value. Check out the different choices for Number and Date/Time fields. Input Mask( 輸 入 遮 罩 ). It pre-sets delimiters, e.g. /, (, ), -, etc; and controls the input values using special control characters, e.g. 0, 9, L, A, etc. E.g. for a field of size 4, the input mask L(000) controls the input value so that the first character must be a letter and the rest must be number with the parenthesis pre-set. Then P(123) is a valid input. Caption( 標 題 ). It is used to label the field instead of the field name. v. Default Value( 預 設 值 ). This value will be entered automatically when a new record is added. vi. Validation Rule( 驗 證 規 則 ). It set up rules such >1000, Is Null to validate the input data. v Validation Text( 驗 證 文 字 ). It will be displayed if the above Validation Rule is violated. After you have define the table structure, i. click the save button. type the table name. MICROSOFT ACCESS page 3

To start enter data, click the datasheet button on the top left. The table will be displayed in datasheet view ( 資 料 工 作 表 檢 視 ) as shown in fig. 5, in which table is represented as collection of rows and columns called a datasheet( 資 料 工 作 表 ). fig. 4 fig. 5 Note that in datasheet view, i. you can press the tab key to complete the entry for a field (pressing the tab key at the last field in the last record will automatically add a new record), i the asterisk * sign indicates the end-of-file mark. Records are automatically saved after each data entry. Form In addition to datasheet view, you can use Form view so that you can view a single record at a time. Advantages of using Forms. i. If there are many fields and it is not possible to display all of them on a single row. The data entry interface can be customised so that it becomes more user-friendly. There are 3 basic views for each database table: design view, datasheet view and browse view. The fastest way to create a form, i. select the table where the data to be input come from MICROSOFT ACCESS page 4

choose the Autoform ( 自 動 產 生 表 單 ) option under the New Object button on the top right. fig. 6 The data table will be then viewed in the Form view as follows. fig. 7 Click the save button and type the form name to save the form design then. After you have created the Form, you can open the form for data input by double-clicking the form icon under the Form tab. If you want to change the design of the Form, click the Design view button. The form is then displayed in Design view with Toolbox toolbar to help you to change the Form design as shown in fig. 7. Report You can create a customised report as shown in fig. 8 using the Report functions of Microsoft Access. Note that a report usually contains 3 parts: i. Page header. It appears at the top of each page containing a custom title. i Detail lines. They are the lines printed for each record containing only those fields you specify. Page footer. It appears at the bottom of each page containing the summary information. MICROSOFT ACCESS page 5

fig. 8 Student Information Student ID Name Telephone A(123) Peter Pan 23423423 B(456) Mary Chan 23232323 Page header Detail lines M Total: 23 students Page footer fig. 9 To create a report i. select the table from which the data come in the Table tab. select AutoReport ( 自 動 產 生 報 表 )option under the New Object button, Or select Report ( 報 表 ) option and then select Report Wizard to customize the report design. You can modify a report layout by clicking the design view after you choose the report in the Report tab. After you have created the report you can preview by double-clicking the report icon in the Report tab. After you have created the report you can print by the following steps, i. Click the report icon in the Report tab. Click the print button on the toolbar. MICROSOFT ACCESS page 6

Query One of the most powerful tools in a DBMS is queries, which allow you to ask questions on a database and find out answers or information from the database. For example, i. Finding the Chinese marks of all girls in class S5F. Finding the names of the students who have overdue book from library and the titles of the books. Steps to create a new query, i. Select a table from the table tab. Click the query button under the New Object button arrow. A Select Query ( 選 取 查 詢 ) window will be then displayed in which you create a query. fig. 10 General Steps for Creating a Query i. Select the table(s) for which you are creating a query in the database. i iv. If more than one tables are selected, set join between tables. Select Field(s) from the Table(s). Select filter criteria, criteria for selecting records in the table(s). v. Set sort key(s) MICROSOFT ACCESS page 7

To add a table to a query i. Right-click any open area in the upper pane. i Choose Show table ( 顯 示 資 料 表 ). Choose the table that you want to add and click Add. Normally the join will automatically set after you add a new table. If it does not, drag the field from one table onto the related field on another table. To select fields, double-click the fields that you want to select on the upper pane. To set filter criteria, type them the criteria ( 準 則 ) row. Note that all criteria on the same row have an AND relation, criteria on different rows have an OR relation. To set sort key, choose the sorting order on the sort ( 排 序 ) row to set a field to be the sort key. The leftmost sort key will be the primary one, and so on. To view the query result, i.e. run the query, just click on the run button, the one with the! sign. You should save the query if you want to use the same query in the future. A query file is actually a text file written in a Structured Query Language (SQL). To view SQL codes, choose SQL view under the View button arrow on the top left or View menu. You can also create a form or a report from the query result as follows, i. Select the query in the query tab. Click the corresponding button under the New Object button arrow. MICROSOFT ACCESS page 8