Lab 02
Lab 02
Business Systems
Development
Lab 02
Microsoft Access
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
In this lab, you are required to complete all tasks and submit the MMUDB.accdb file. The
submission instructions will be provided later.
Faculty of Business 2
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
Faculty of Business 3
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
4. Add Tables window will appear on the right of the screen. Double click
on the Table name for both tables to add these tables in relationship.
5. Click and drag a field (typically the primary key) from one
table to the common field (the foreign key) in the other table.
The Edit Relationships dialog box will appear. To enforce
referential integrity for this relationship, select the Enforce
Referential Integrity check box.
Faculty of Business 4
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
7. You will see the Design View of the form as shown below.
Faculty of Business 5
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
4. Click the title frmProgramme in the Form Header and edit the text to Add New Programme and press
Enter. Resize the textbox as shown below and dragging the textbox handle (small square on the line).
5. Under the Form Design menu, click logo and select the image.
6. Click and drag an area in the Form Header so that the image appears as shown below.
7. Right click on the empty area in the Form Header and select a Fill/Back Color. Choose your own color.
Faculty of Business 6
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
8. Right click on Form title and select Font/Fore Color. Choose your own color but make sure it is a good
contrast with the background color.
9. Place your cursor at the edge of the Form footer and click and drag to add more form area.
Faculty of Business 7
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
2. Click on the form to place the button. Select Record Operations and Add New record in the
Command Button Wizard and click Next.
Faculty of Business 8
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
5. Repeat the same process for the Delete and Save button.
6. Repeat Task 3 and 4 for Student and Subject Form design. Note that form is a user-friendly way for
data entry. Think about how and what data do users need to key in.
Faculty of Business 9
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
2. Open the frmSubject in a Form View and key in the following data.
3. Open the frmStudent in a Form View and key in at least 5 students’ data. No data sample is provided,
so you need to key in your own data.
Faculty of Business 10
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
Subforms are especially effective when you want to show data from tables or queries that have a one-to-
many relationship. A one-to-many relationship is an association between two tables in which the primary
key value of each record in the primary table corresponds to the value in the matching field or fields of
many records in the related table.
2. Select Table: tblProgramme, transfer Prog_Name to the Selected Fields. Don’t click next yet.
3. Select another table Table: tblStudent and transfer all available fields to the Selected Fields. Click
Next.
Faculty of Business 11
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
4. Make sure by tblProgramme is selected because that will be the main form and make sure Form with
subform is selected. Click Next.
5. Make sure Datasheet is selected because we want our subform to use the datasheet layout.
6. Change the Form name to frmStudentProgramme and the subform to frmsubStudent. Click Finish.
Faculty of Business 12
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
8. Repeat Task 6 for where Student is the main form and Result is the subform.
Faculty of Business 13
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
3. Select Table: tblStudent, transfer Fields as shown below to the Selected Fields. Click Next.
Faculty of Business 14
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
4. Next, we want our report to be list the student according to programme. Click Next.
Faculty of Business 15
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
7. Adjust the layout in the Design view so that it will look similar to what is shown below.
8. Create another report containing StudentID, StudName, SubjectCode, Grade and Marks.
Faculty of Business 16
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
2. Under the Form Design Menu, click Insert Image and select the MMU logo.
Faculty of Business 17
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
4. Under the Form Design menu select a button control and click the form area. The Command Button
Wizard window will appear. Select Form Operations category and Open Form actions.
5. Next, we need to choose which from will be opened when we click the button which should be the
frmProgramme. Click Next.
6. Select Open the form and show all the records. Click Next.
Faculty of Business 18
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
7. Select Text and set the label for the button as Add Programme. Click Next.
8. Give the button a proper name reflecting the function of the button. Click Finish
Faculty of Business 19
BDD4213 BUSINESS SYSTEMS DEVELOPMENT Lab 02: Microsoft Access
9. Complete the Custom Navigation Form by adding other buttons as shown below. Do not copy the Form
Design please use your own creativity.
10. Finally save this file and name the form as frmNavigationMenu. Please test all the buttons and forms
to be functioning correctly before you submit the file.
Faculty of Business 20