BIS2024 Tutorial 1 2016
BIS2024 Tutorial 1 2016
Chapter 1
Introduction to Access
4
DATABASE OBJECTS
• Objects are needed for the database to function
• Four commonly used objects
– Table organize data into columns and rows. Columns
display information in fields, while each row contains a
record.
– Form allows the user to enter, modify, or delete table
data.
– Query is a question that you ask about the data.
– Report consists of information from tables and queries
7
TO CREATE A BLANK DATABASE:
1.Click on Blank Desktop
Database.
8
ACCESS INTERFACE
12
NAME AND SAVE A TABLE
13
TO USE DESIGN VIEW TO CREATE A NEW
TABLE:
14
DATA TYPES
Data Type Use
Short Text Alphanumeric data. The Text data type is used for short text fields
of limited length, and can contain up to 255 characters.
Number Numeric data. Use for numbers you want to use in mathematical
calculations.
Date/Time Use for dates and times. Example: 01/02/99, 06:28:21 PM
Long Text Long text. Use for long pieces of text, such as notes and long
descriptions. Can store up to 64,000 characters.
15
DATA TYPES
Field Property Use
Input Mask Special characters used to control the values the user can input.
Validation Text Text for error messages that are sent when validation rules are
broken.
Default Value Sets the value that appears in the field by default when a record is
created.
16
PRIMARY KEY
• A Primary Key is a field or combination of
fields that uniquely identify each record in a
table. No two records in a table should have
the same values in every field.
17
INPUT MASK
Character Description
0 Digit (0 through 9, entry required; plus
[+] and minus [-] signs not allowed).
18
CREATE tblInstitution TABLE
(DESIGN VIEW)
Field Name Data Type Special Requirements
Institution Code Autonumber Primary Key
Institution Name Short Text 100 characters
Address Short Text 200 characters
Phone Short Text Exp: (606)252-3723
Fax Short Text Exp: (606)252-3729
Sector Short Text 30 characters
Email Short Text 40 characters
Enrolment Size Number Validation Rule: Maximum of 100,000
students
Validation Text: Maximum enrolment
size is 100,000 students only!
19
CREATE tblContact TABLE
(DESIGN VIEW)
Field Name Data Type Special Requirements
Contact ID Short Text Primary Key
Name Short Text 100 characters
Position Short Text 100 characters
Department Short Text Default: IT Department
Address Short Text 200 characters
Phone Short Text Exp: (606)252-3723
Fax Short Text Exp: (606)252-3729
Email Short Text 40 characters
Institution Code Number
Remark Long Text
20
CREATE tblOrder TABLE
(DESIGN VIEW)
Field Name Data Type Special Requirements
21
CREATE tblInstitution TABLE
(DATASHEET VIEW)
22
CREATE tblContact TABLE
(DATASHEET VIEW)
23
CREATE tblOrder TABLE
(DATASHEET VIEW)
Order Number Institution Code Book Qty Value Order type CD renewal
1 2 25 30000 Book
2 2 0 500000 CD-ROM 12-Dec-09
3 2 35 500000 Book
4 2 0 1500000 CD-ROM 12-Dec-10
5 3 34 54333
6 4 33 10000
7 5 10 2000
8 5 0 5000 CD-ROM 31-Dec-10
9 6 0 20000 CD-ROM 31-Jul-11
10 7 30 30000
11 7 0 2000 CD-ROM 31-Jul-11
12 8 50 1000000
13 8 0 50000 CD-ROM 31-Jul-12
24
COPYRIGHT
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, electronic, mechanical,
photocopying, recording, or otherwise, without the prior written permission of the
publisher. Printed in the United States of America.