SummarySlideshow Chapter2
SummarySlideshow Chapter2
SummarySlideshow Chapter2
Design View
Queries
Forms
Reports
Access 2013: Design View,
Queries, Forms and Reports
Ways to create a table in MS Access
1
Click the CREATE tab 1
2 2
Or
Under Tables group, click
the Table Design button to
open the Design View The Design
page opens
Field Selector
Field Properties
area
Description column
Field Selector
Description column
• It contains an optional
description of the field.
1
3 In the Field Definition
Grid, under the Field
Name column, type EmpID
6
6
Add three more fields,
EmpName, EmpSal, and 5
EmpDeptNo with data types
Short Text, Number and
Number respectively
7
Click the EmpID field
selector and then click on
the DESIGN tab. In the
Tools group, click the The field EmpID will now
Primary Key button become the primary key
• Alternatively,
After you set the primary key, a 1key icon
1 Right-click the field selector 2
will appear in the gray selector area to the
of the column that will be left of the field’s name
the primary key
7
Click the down-arrow and
select the data you want in
the field 7
A down-arrow
appears
Field Size • This is the maximum size for data stored in Text or
Number fields.
• For Text data, the field size determines the maximum
number of characters. The Short Text data type has
maximum 255 characters.
• For Number data, field size determines the range and
how many bytes can be used for storage.
Format • This specifies how data will be displayed.
Number and • You can choose from the seven pre-defined formats,
Currency i.e., General Number, Currency, Euro, Fixed,
Formats Standard, Percent, and Scientific.
• You can also create custom formats.
Date and • You can select from pre-defined formats, i.e., General
Time Formats Date, Long Date, Medium Date, Short Date, Long
Time, Medium Time, and Short Time.
Validation • The validation rule limits the value that the field will
Rule accept.
• For example, if the validation rule for a field is <= 100,
it means that the field must be less than or equal to 100.
• If you enter a value greater than 100, you will get an
error message.
• Validation Text This is the error message that
appears when the value entered in a field violates the
validation rule.
Allow Zero • This property is used for Text and Memo data types.
Length • If Required is Yes and Allow Zero Length is No,
data must be entered in the field during data entry.
• If both properties are set to Yes, the field can be left
empty.
• Query Wizard
• Query Design
2
Select Simple Query 1
Wizard and click OK
2
3
In the Tables/Queries
box, select the table that Simple Query
The New Wizard
Query
contains your data screenbox
dialog 1 ofappears
3 appears
©Oxford University Press
Access 2013: Design View, Queries, For 24
ms and Reports
• Then,
To add a field, select it in
4 the Available Fields list
and then click , or just
double-click it
4
6 Select Detail or
Summary and click on
Next
If needed, remove fields by
7 selecting them in the Selected 65 7
Fields
Type list andname
a query clicking
in the
text box, select Open the
query to view
The query
Simple resultWizard
Query will appear
information, and click on in the Datasheet View
screen 3
2 of 3 appears
Finish
©Oxford University Press
Access 2013: Design View, Queries, For 25
ms and Reports
Using Query Design
• Follow these steps to create a query in Query Design:
1 Click Query Design in the
Queries group of the
CREATE tab
3
Click on Close when you The Query Design
screen
The Showappears
Table
finish adding tables
dialog box appears
Or
Click the field and drag it to
the required column in the
grid
Or
Double-click the asterisk
(*) to include all the Required fields are
columns of the table added to the grid
Or
Type the field name directly
in the required column in
the grid
©Oxford University Press
Access 2013: Design View, Queries, For 27
ms and Reports
• Now,
5 To change the order, select
the entire column and drag
it to the new position
6
To hide one or more 5
columns, clear the Show
checkbox for those 8
6 7
7 Choose the field to sort by
and choose Ascending or
Descending from the
corresponding Sort box
8
In the Criteria of EmpSal
field, type >=50000
1
Click Run in the Results
group of the DESIGN tab
1
Click in the Query
Design screen
The output for the
query appears
Or
2 Click the Save button on
the Quick Access 3
Toolbar
• Form Command
• Split Form
• Form Wizard
3
2
Click Form in the Forms
group of the CREATE tab
2
• ADESIGN,
The simple form that uses all
ARRANGE
3 theFORMAT
and fields in the table
tabs nowis
Select the text box and createdon the ribbon
appear
resize it • Form
The form is displayed
Layout in a Design
Layout ViewView
View View
11
Click anywhere inside the
blank area of the form
12
Click the down-arrow of
Shape Fill in the Control
Formatting group
The colour of the form
would look like this
13
Select a colour from the
colour palette
15
Type the form name and 15
click on OK
23
3 Access creates the form in the
The two Views are separated by
Click the Layout View to upper half of the window and
a bar that can be used to resize
format the form displays the Datasheet Layout
Form
View
the height of the two Views
in the bottom halfView
1
2 Select the table from the
Tables/Queries drop-
down menu and select the
fields you want in the form.
Click on Next
23
3
Select a form layout and
click Next Form
Form Wizard
Wizard screen
screen
231 of 3 appears
4
Give a name to the form.
6 5
Click on Finish to create
the form
The formatted form will
6
appear on the screen
Click to add
new record
• Report Command
• Report Wizard
4
Click the Print Preview to The report is displayed on
see how the report will look Report
the screenPrint
Layout
Preview
View
View
when printed on paper
©Oxford University Press
Access 2013: Design View, Queries, For 40
ms and Reports
Using the Report Wizard
• Follow these steps to use Report Wizard:
1 Click on Report Wizard
in the Reports group of
the CREATE tab
3
2
3 Select the grouping level
within the report and click
Report
Here
Report Wizard level is
the Wizard
grouping
on Next
screen 321of
screenby
screen of55appears
appears
EmpDeptNo.
©Oxford University Press
Access 2013: Design View, Queries, For 41
ms and Reports
• Then,
Sort data by required
4
fields. Click the
Ascending button to
change it to Descending.
Click Next
Or 1
2
2
Select the required options
and click on OK The Print dialog box
appears
2. Form
__________ can provide an easy to use interface for entering
and editing data.
3. Click ______________
Print option of the FILE tab to print a report.
Tables
4. The Table Design button is present under _________ group of
the CREATE tab.
3. When you add a new field in Design View, it is assigned the Short
Text data type: ________
True
5. You can also assign the AutoNumber data type to any field:
________
True