Lab-3 Data Base
Lab-3 Data Base
CAMPUS
Department Of Computer Science
LAB 03
Summary
Items
Course Title
Lab Title
Duration
Operating
System
/Tool/Language
Objective
Description
Database Management System
Excel sheet Import /Export
3 Hours
Windows Operating System/MS Excel 2010 /MS Access 2007
To get familiar with MS Excel
1
2
3
4
BS(CS)
5 In cells A2:K2, enter the headings shown in Figure 7. They are: No., Title,
First Name, Last Name, Gender, Job Position, Salary, Address, City,
State, Postal Code.
6 Beginning in row 3, enter your own information for 10 employees. Make sure
you:
a have 5 female employees and
b only create 5 different job positions.
7 Format the table of employees, including the headings in row 2. Make sure
you change the Salary column to currency and do not show a decimal point.
You may format the colors and such however you wish.
8 Select the cells A2:K12. In the Formulas tab, select the Define Name button.
For the name enter employeelist, and press the OK key. This will name the
range of cells that contain your field headers and data, so that you can easily
refer to it later here and in other projects down the road.
9 Save your workbook as lastname_firstname_excel_database.xlsx
BS(CS)
6
7
8
9
a Select the Show Named Ranges radio button. Select the range
employeelist, which is the name range you created in your Excel
project. Select the Next > button to go to the next step in the wizard.
b Check the box First Row Contains Column Headings such that there
is a checkmark there. Click the Next > button.
c Select the No column in the table. Under Field Options, change the
Field Name to EmployeeNum. Click the Next > button.
d Select the Choose my own primary key. radio button. Using the pulldown, select the EmployeeNum option. Click the Next > button.
e Note: A primary key field is used to uniquely identify each record in
your table.
f For the Import to Table textfield, enter EmployeesTbl. Click the
Finish button. Click the Close button. Open your Employees table in
Design View by clicking on the Home tab. In the upper left corner,
click on the View pull-down and select the Design View option.
Delete the Gender and Salary fields by right clicking on the field row and
selecting the Delete Rows option. (Another way to delete is clicking on the
field row and selecting the Delete option under the Records section in the
Home tab.) Click the Yes button to permanently delete the selected field.
Add a new field to the table by typing Employee Status in the first empty
cell in the Field Name column. Set the Data Type to the Lookup Wizard
option.
In the Lookup Wizard window:
a Select the I will type in the values that I want. radio button. Click the
Next > button.
b Under Col1, type in the following three options in the first three cells:
Full-time, Parttime, and On-call. Click the Next > button.
c Checkmark the Limit To List checkbox. Click the Finish button. You
have just created a Lookup Value for the Employee Status field.
Save your changes by clicking on the Save icon (3.5 disk) in the top left
corner of the Access window.
Open the EmployeesTbl in the Datasheet View by clicking on the View pulldown and selecting the Datasheet View option. (If you do not see the View
BS(CS)
pull-down, then click on the Home tab and you will see it in the upper left
corner.)
10 Add a status to each of your employees in the table. To add a status, you can
simply click in the Employee Status cell for each employee and utilize the
lookup values provided by clicking on the pull-down menu.
BS(CS)