You are on page 1of 19

Create Relational

Queries
Forms & Reports
Lecture 7

Dr. Huynh Tan Quoc

Business Computing Skills - BA120IU 1-1


1. Creating a Relational Query

2. Creating a Relational Report

3. Creating a Relational Form

2
1-2
Creating a Relational Query

 Select the Create tab on the Ribbon.


 Click Query Design.

 Choose CDS and SONGS table to


add them both to the Query Design
window

3
1-3
Creating a Relational Query
 Query Window.

4
1-4
Creating a Relational Query
 Choose the fields to add to the query table
 Under the Artist field, enter the following parameter criteria:
like [Enter the name of an artist] & *

5
1-5
Creating a Relational Query
 Click the View icon to test the query.

6
1-6
Creating a Relational Report

7
1-7
Creating a Relational Report
 Double-click on Genre to add that field as a grouping level.

8
1-8
Creating a Relational Report
 Double-click on Genre to add that field as a grouping level.

9
1-9
Creating a Relational Report
 Leave the layout as Stepped and click Next.

10
1-10
Creating a Relational Report
 The report Songs by Genre.

11
1-11
Creating a Relational Report
 Leave the layout as Stepped and click Next.

12
1-12
Creating a Relational Report
 Report Modifications

Select the Report Design Tools – Design tab on the Ribbon.


Click the Group & Sort icon.

Click More to see additional options.


Change without a footer section to with a footer section
Create Count total song in the Genre Footer

13
1-13
Creating a Relational Report
 Report Modifications
Create Count total song in the Genre Footer

 Set repeated header of each page in same group.


Right-click on the Genre Header and select Properties.

Find the Repeat Section property and change it to Yes. Close the properties panel.

14
1-14
Creating a Relational Form
 Select the Create tab from the Ribbon.
 Click .
 Select all of the fields from table CDS.
 Select fields: Title, Artists, Genre, Duration and Track from table SONGS.

15
1-15
Creating a Relational Form
 Choose the default option is a Form with a Subform.

16
1-16
Creating a Relational Form
 Finish

17
1-17
Creating a Relational Form

18
1-18
19
1-19

You might also like