Professional Documents
Culture Documents
Practice
ائمادەیا داڤنشی یا خوێندنێن پیشەیی
Basic Operations
Teacher Name: heve m.saeed
Prepared by: Maria T Hajee
Vocational high school : Da Vinci Studio School
Department : Computer
Alternatively
• Click the file menu at the top left of the window.
• Click Exit on the menu that appears.
Exit
Opening and Closing a database
Opening
Click the File menu
Click Open
Closing
Click the File menu
Select Close Database
Using Help
Press the F1 key
Or clicking Help icon from File menu
The Ribbon
It is displayed at the top of the Access window and contains
buttons and menus for all the most commonly performed tasks.
Quick Access Toolbar
Minimizing and Restoring the Ribbon
Restoring the Ribbon
Creating a New Database
The File menu is open with New database options displayed.
Click Blank Database
The default file name for a new database is Database1. click into
the file name box and enter a relevant name for the database.
To create a database within the default file location , click the
Create button;
Saving a New Database
• The default location in which the .accdb database file will be
saved is displayed below the file name textbox
To save a database to a different location, do the following:
• Add new database
• Do not click Create
• Click the browse icon
• Navigate to the desired location.
• Click ok
• Click Create
MS Access 2010
Practice
ائمادەیا داڤنشی یا خوێندنێن پیشەیی
Creating Table
Teacher Name: heve m.saeed
Prepared by: Maria T Hajee
Vocational high school : Da Vinci Studio School
Department : Computer
Or Ctr+S
Opening a Table
Start Microsoft Access.
Open the required database
Tables are displayed with : Table after their name
Double –Click the table name to open it in datasheet View from the
Navigation Pane.
Closing a Table
Click the Close X button at the right of the table
Close X
button
Department : Computer
Table description
field
properties
Cont..
Click in the data type column in the list of field.
Select the required Data Type from the list.
Field size
Cont..
The first name field is required field it should not be possible for a new
record to be saved with no First Name entered.
To set the required field property, do the following :
• Move the mouse cursor over the Required field property.
• Click the arrow.
• Select Yes from the drop-down list.
Properties of a Number Field
The properties available for a number field are shown in the
illustration below.
Cont..
Field size: determines the type of numbers that will be stored.
The two must common types are Long Integer, where decimals
are not needed e.g (age field) and Double where decimals are
needed e.g (student mark field)
Department : Computer
Enter Data
Lookup Wizard
The last field to be added is a Lookup wizard field. In this
database it is used to indicate whether or not the member is a
Gold, Silver or Bronze member.
MS Access 2010
Practice
ائمادەیا داڤنشی یا خوێندنێن پیشەیی
Validation Rules
Teacher Name: heve m.saeed
Prepared by: Maria T Hajee
Vocational high school : Da Vinci Studio School
Department : Computer
Shift+< = و
Shift+> = ز
Shift+ز+><=و
Shift+“ = ط
Cont..
Shift+3 #
Cont..
Cont..
Create a table called employment with the following fields and
properties.
MS Access 2010
Practice
ائمادەیا داڤنشی یا خوێندنێن پیشەیی
Primary Key
Teacher Name: heve m.saeed
Prepared by: Maria T Hajee
Vocational high school : Da Vinci Studio School
Department : Computer
• Click the Field Name cell to the right and select First Name
from the drop-down menu
Cont..
Add the surname field below the First Name field in the same
way.
Department : Computer
To add a new Yes/No field called Deceased to the members table,
do the following
• Open the Members table in Design. View .
• In the field list, enter Deceased in the first empty cell in the
Field Name column .
• Change the Data Type to Yes/No.
• Save the table .
Adding Records to a Table
To create a new record, do the following:
• Click the New Record button on the Navigation toolbar
Only records where the Age field is greater than 30 are now available.
Cont..
To remove the filter, do the following:
• Click in the Age field.
• Click the Filter icon.
• Select Clear Filter from Age.
The filter are removed and all records are once again ,
available to view
MS Access 2010
Practice
ائمادەیا داڤنشی یا خوێندنێن پیشەیی
Relationship
Teacher Name: heve m.saeed
Prepared by: Maria T Hajee
Vocational high school : Da Vinci Studio School
Department : Computer
If the Show Table is not displayed automatically, click the Show Table option in
the relationships section of the ribbon.
In the Show Table window, click the Member option in the list of tables to
highlight it.
Click Add.
In the Show Table window, click the Competition option in the list of tables to
highlight it.
Click Add.
Click Close to close the Show Table window.
Cont..
The tables should now be visible in the Relationship Designer.
Note: the line has ‘1’ on the Member side and the
symbol for infinity on the Competitions side.
This represents the one-to-many
nature of the relationship.
Save the relationship by clicking the Save icon above the File menu.
Cont..
Datasheet View is also enhanced by a defined relationship. To see
this do the following:
Open the Members table in Datasheet View.
Each record now has an expansion box to the
left of the Member Number
field.
Click this box to expand the grid to display
the records related to
that member that exist in the
Competitions table.
Cont..
To delete a relationship, do the following:
Open the Relationship Designer.
Click the line joining the tables to select it.
Press Delete.
A confirmation window opens.
click Yes.
Save the relationship.
MS Access 2010
Practice
ائمادەیا داڤنشی یا خوێندنێن پیشەیی
Forms
Teacher Name: heve m.saeed
Prepared by: Maria T Hajee
Vocational high school : Da Vinci Studio School
Department : Computer
1
Cont..
A new form is created and the first record in the table is
displayed.
Cont..
The Form is in Layout View, which is intended for defining the
placement of elements.
If this is the first time the for has been saved, a window will open
prompting for a name.
• Enter a relevant name.
• Click Ok to save.
Opening a Form
To open a Form do the following:
Start Microsoft Access.
Open the required database
From the Navigation Pane, Double-click the desired Form to
open it in Form View.
Closing a Form
To close a Form do the following:
• Click the Close X button at the top right of the form.
Navigating Records in Form View
When viewing a form in Form View, the standard navigation toolbar
is displayed at the bottom of the screen. Clicking on the different
sections of the toolbar will change the form to display another
record.
Headers and Footers in a Form
New items, such as the date and time, can be added to the form
header or footer.
To add new items, do the following:
• Open the form in Design View.
• In the Header/Footer section on the ribbon, click the Date and Time button.
New Record
button
• Alternatively, click the Home tab on the Ribbon, and then click the
New command from the Records section.
Cont..
• A blank record will be added, and the form will reflect this by
displaying empty fields.
Search
command
Cont..
• You can make search for a word, for a Number, and for a date.
Using Find and Replace:
The search function is useful for quick searches, but sometimes
amore thorough search is needed and the find and replace
facility should be used, this can be accessed using the find icon
in the Home tab of the ribbon.
Sort by Number
Open the Member table in datasheet View.
Right-click the Age field.
Select Sort Smallest to Largest from the menu.
Sort by Date
To sort on a Date e.g. competition date, do the following:
Open the Competitions table in datasheet view.
Right-click on the competition Date field.
Select Sort Newest To Oldest from the menu.
Sort by Text:
To sort on Text, e.g. members surnames, do the following:
Open the Member table in datasheet View.
Right-click the surname field.
Select Sort A to Z from the pop-up menu.
Adding Attachments to Records
Attachment can be added to attachment-type fields. This is
useful for storing a graphic file.
Open the Members table in Design View, add field name photo
and field type Attachment.
To attach file to a record, do the following:
Ensure that the Members table is open in Datasheet View.
Double-click the photo field of the record to which the photograph is to be
attached.
Cont..
The Attachments window opens.
Click Add.
Department : Computer
If this is the first time the query has been saved, a window will be
displayed prompting for a name.
Enter the name.
Click Ok to save.
Below the table list is a grid. This is used to define which fields
are to be included in the query and to sort criteria for inclusion.
Cont..
Within each column, a field name can be chosen from the field:
drop down list.
Add the Member Number, First Name, Surname, and active fields
as shown above.
Cont..
Ensure that the show: checkbox is ticked for each.
Save the table .
As only active members should be returned by this query,
Adding Criteria to a Query
It is possible to specify precisely the information that a query
needs to return by adding criteria.
Specific mathematical symbols are used to express these criteria.
Department : Computer
If this is the first time the report has been saved, a window will
be displayed prompting for a name.
Enter the name.
Click Ok to save.
Creating a Report
Reports are based on any data source. This means tables and
queries.
To create a report based on the Members table, do the following:
In the Navigation pane, click the Members table to select it.
Click the Create tab, on the ribbon.
Click Report button in the Reports section.
A new report will be generated from the table, give the same name
as the table, and displayed in layout View.
Changing the Arrangement of Data fields
As with a form, the elements of the report can be positioned in
Layout View by dragging them with the mouse.
Modifying Text in a Header
To modify the Text in the header, do the following:
Right-click the report in the Navigation Pane.
Select Design View from the menu.
Active
member
Non-Active
member
Totaling Options
When you present specific fields in a grouped report, you may
avail of a number of options that summarize numeric information.
These numeric fields will be located in the Summary Options
section.
You can display numeric information by total (sum), mean (avg),
maximum (max), or minimum (min).
In Layout View, right-click the Yearly Fees column.
Select the Total Yearly Fees menu option.
Select Sum.
Cont..
A total will be placed in the Yearly Fees column at each group
break,
Cont..
And an overall total at the end of the report.
Further Examples of Totaling Options
Totaling the Yearly Fees column by Sum will produce a report, with
sum totals for each group.
Selection average will give the average value of the Yearly Fees.
Cont..
Choosing Count Records will yield the number of records in each
group.