You are on page 1of 8

Microsoft Access 2000 Workshop 1

Creating a New Database

Creating a New Database


A. Starting Microsoft Access 2000
1.
2.

From the Desktop, click the Start button to display its menu items.
Click to select Microsoft Access from the Programs menu.

B. Creating a New Database


1.

In the Microsoft Access dialog box, click to select the Blank Access database
option.

1. Click the Blank Access database


option.

2. Click the OK button.

2.
3.

Click the OK button.


In the File New Database dialog box, move to the desired directory (e.g., A:).

3. Move to the desired


directory (e.g., A:).

4. Replace db1 with


ITClass.

4.
5.

5. Click the Create


button.

In the File name text box, replace db1 with ITClass.


Click the Create button.

Designed by T. S. Wong

http://www.wong-sir.com

Microsoft Access 2000 Workshop 1

Creating a New Database

C. Creating a New Table


1.

Click to select the Tables object if necessary.


1. Click to select Tables
if necessary.

2. Double-click Create
table in Design view.

2.
3.

Double-click the Create table in Design view option.


In the Table1: Table dialog box, enter StudentID in the first Field Name text box,
and then press the Tab key to move to the Data Type text box.

3. Enter StudentID here.

4. Leave Text unchanged


for Data Type.
5. Change the Field Size to 8.

4.
5.

Leave Text unchanged for Data Type.


Change the Field Size from 50 to 8.

Designed by T. S. Wong

http://www.wong-sir.com

Microsoft Access 2000 Workshop 1

6.

Creating a New Database

Similarly, create two more fields with the structure below:


Field Name

Data Type

Field Size

Name

Text

20

Class

Text

6. Create two more fields:


Name and Class.

7.

Enter ClassNo as the fourth field.

7. Enter ClassNo here.

8. Click the Down arrow to


display the drop-down list.
9. Select Number
for Data Type.

8.
9.

In the Data Type text box, click the Down arrow to display the drop-down list.
Click to select Number for Data Type.

Designed by T. S. Wong

http://www.wong-sir.com

Microsoft Access 2000 Workshop 1

Creating a New Database

10. Change the Field Size from Long Integer to Integer.

10. Select Integer from the


drop-down list.

11. Create five more fields with the structure below:


Field Name

Data Type

Field Size

Birthday

Date/Time

Address

Text

30

Hobby

Text

50

SAMember

Yes/No

Remarks

Memo

11. Create the Birthday, Address,


Hobby, SAMember, and Remarks
fields as before.

Designed by T. S. Wong

http://www.wong-sir.com

Microsoft Access 2000 Workshop 1

Creating a New Database

D. Setting the Primary Key Field


1.

Click on the box to the left of the StudentID field to select the entire row.

1. Click here to select


the row.

2.

Click the Primary Key button on the Toolbar to set the StudentID field as the
primary key.
2. Click the Primary Key button
on the Toolbar.

E. Saving the Table


1.

Click the Save button on the Toolbar to save the Table.


1. Click the Save button on
the Toolbar.

2.

In the Save As dialog box, replace Table1 with Students.


3. Click the OK
button.
2. Replace Table1 with
Students.

3.

Click the OK button.

Designed by T. S. Wong

http://www.wong-sir.com

Microsoft Access 2000 Workshop 1

Creating a New Database

F. Closing the Table in Design View


1.

Click the Close box of the Students: Table window to close the Students Table in
Design View.

Click the Close box to close


the Students: Table window
in Design View.

G. Entering Data in Datasheet View


1.

Click to select the Tables object if necessary.

1. Select the Tables


object if necessary.
2. Double-click the Students
table to open it in Datasheet View.

2.

Double-click the Students table to open it in Datasheet View.

Designed by T. S. Wong

http://www.wong-sir.com

Microsoft Access 2000 Workshop 1

3.

Creating a New Database

Click the Maximize box to expand the Students: Table window.


3. Click the Maximize box to
expand the Students: Table
window in Datasheet View.

4.

Enter the following data in the Students table in Datasheet View.

StudentID Name Class ClassNo Birthday


Address
19980123 Andrew 4A
1
1986/04/23 Homantin
19981034
Ann
4A
2
1986/07/11 Mongkok
19981031 Anthony 4B
1
1986/01/19 Homantin
19980029

Betty

4B

1986/12/13

Homantin

19980998 Carol
19980366 Catherine

4A
4B

3
3

1986/10/08
1986/03/14

Mongkok
Mongkok

19980115
19981002
19980333
19980246

4A
4B
4A
4B

4
4
5
5

1985/08/22 Tuen Mun


1986/04/23 Homantin
1986/10/29 Tsuen Wan
1986/03/23
Shatin

Jack
Jacob
Jane
Joseph

The dates should be entered in the


order of Year/Month/Day (e.g.,
1986/04/23).

Designed by T. S. Wong

Hobby
SAMember Remarks
Basketball, Eating
No
Reading, Sleeping
Yes
Running, Hiking,
Yes
Monitor
Swimming
Music, Singing,
Yes
Reading
Reading
Yes
Monitor
Roller skating,
No
Skipping
Singing, Running
Yes
Prefect
Eating, Reading
Yes
Skipping, Eating
Yes
Cycling, Running,
Yes
Prefect
Swimming, Reading

Click to put a check mark in the


box to indicate the option Yes.
Click again to remove the check
mark.
An empty box indicates No for
the option.

http://www.wong-sir.com

Microsoft Access 2000 Workshop 1

Creating a New Database

H. Exiting Microsoft Access 2000


1.

Click the Close box of the Students: Table window to close the Students Table in
Datasheet View.
1. Click the Close box to
close the Students table.

2.

Choose Exit from the File menu to excess Microsoft Access 2000.

2. Choose Exit from the


File menu.

"

Data Types Supported by Microsoft Access 2000

Type
Text
Memo
Number

Date/Time
Currency
AutoNumber
Yes/No
OLE Object

Designed by T. S. Wong

Size
255 characters
64,000 bytes
Byte = 0 to 255 (1 Byte)
Integer = -32,768-32,767 (2 bytes)
Long Integer = -2,147,483,648 to 2,147,483,647 (4 bytes)
Single = -3.4 x 1038 to 3.4 x 1038 (4 bytes)
Double = -1.797 x 10308 to 1.797 x 10308 (8 bytes)
ReplicationID = 16 bytes
8 bytes
8 bytes
4 bytes
1 bit
1 GB (maximum)

http://www.wong-sir.com

You might also like